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

!752

p {
  S a = rep('a', 100);
  S s = structure(ll(a, a));
  print(s);
  assertTrue("length " + l(s), l(s) < 200);
  L<S> l = cast unstructure(s);
  assertEquals(ll(a, a), l);
  assertSame(l.get(0), l.get(1));
  print("OK!!");
}

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: 448 / 506
Referenced in: [show references]