Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1026109 // test_structure_listContainingItself

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5375L/34K).

svoid test_structure_listContainingItself() {
  new L l;
  l.add(l);
  S s = struct(l);
  print(shorten(s, 500));
  L l2 = unstructureList(s);
  assertEquals(1, l(l2));
  assertSame(l2, first(l2));
}

Author comment

Began life as a copy of #1024865

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026109
Snippet name: test_structure_listContainingItself
Eternal ID of this version: #1026109/5
Text MD5: 1b9b169098364d21d043ea352fbe5396
Transpilation MD5: 36cbf3ca7b1907b1b0bda0a19f7bb423
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-24 23:00:04
Source code size: 207 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 337
Version history: 4 change(s)
Referenced in: [show references]