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

12
LINES

< > BotCompany Repo | #1004822 // Test structure/unstructure with large strings [WORKS]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1755L/11K/39K).

1  
!752
2  
3  
p {
4  
  S a = rep('a', 100);
5  
  S s = structure(ll(a, a));
6  
  print(s);
7  
  assertTrue("length " + l(s), l(s) < 200);
8  
  L<S> l = cast unstructure(s);
9  
  assertEquals(ll(a, a), l);
10  
  assertSame(l.get(0), l.get(1));
11  
  print("OK!!");
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004822
Snippet name: Test structure/unstructure with large strings [WORKS]
Eternal ID of this version: #1004822/1
Text MD5: 0482d6be239724fc0e8ede1de755a32a
Transpilation MD5: 1457f4b0b0a3ecab8dbb9f214b784823
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-02 16:40:26
Source code size: 242 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 524 / 600
Referenced in: [show references]