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).

1  
svoid test_structure_listContainingItself() {
2  
  new L l;
3  
  l.add(l);
4  
  S s = struct(l);
5  
  print(shorten(s, 500));
6  
  L l2 = unstructureList(s);
7  
  assertEquals(1, l(l2));
8  
  assertSame(l2, first(l2));
9  
}

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: 156 / 258
Version history: 4 change(s)
Referenced in: [show references]