Libraryless. Click here for Pure Java version (1928L/12K/43K).
!752 p { S a; S s = "[" + structure(a = rep('a', 100)) + ", " + structure(rep('a', 100)) + "]"; print(s); L<S> l = cast unstructure(s); assertEquals(ll(a, a), l); assertSame(l.get(0), l.get(1)); s = "[" + structure(a = rep('a', 5)) + ", " + structure(rep('a', 5)) + "]"; print(s); l = unstructureList(s); assertEquals(ll(a, a), l); assertNotSame(l.get(0), l.get(1)); print("OK!!"); }
Began life as a copy of #1004822
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: | #1004823 | 
| Snippet name: | Test that unstructure intern()s large strings (and not short ones) | 
| Eternal ID of this version: | #1004823/1 | 
| Text MD5: | aeadccde32b100b2ae5fc43bac61502d | 
| Transpilation MD5: | 7f8c2c80ed27bed837522a8fa2c724f6 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX source code | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2016-09-03 22:35:05 | 
| Source code size: | 431 bytes / 18 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 825 / 950 | 
| Referenced in: | [show references] |