Libraryless. Click here for Pure Java version (1928L/12K/43K).
1 | !752 |
2 | |
3 | p {
|
4 | S a; |
5 | S s = "[" + structure(a = rep('a', 100)) + ", " + structure(rep('a', 100)) + "]";
|
6 | print(s); |
7 | L<S> l = cast unstructure(s); |
8 | assertEquals(ll(a, a), l); |
9 | assertSame(l.get(0), l.get(1)); |
10 | |
11 | s = "[" + structure(a = rep('a', 5)) + ", " + structure(rep('a', 5)) + "]";
|
12 | print(s); |
13 | l = unstructureList(s); |
14 | assertEquals(ll(a, a), l); |
15 | assertNotSame(l.get(0), l.get(1)); |
16 | |
17 | print("OK!!");
|
18 | } |
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: | 828 / 953 |
| Referenced in: | [show references] |