Libraryless. Click here for Pure Java version (5098L/32K).
1 | svoid test_structure_synchronizedTreeMap() { |
2 | Map map = synchronizedTreeMap(); |
3 | S name = className(map); |
4 | print(name); |
5 | S s; |
6 | print(s = struct(map)); |
7 | Map map2 = cast unstruct(s); |
8 | assertEquals(name, className(map2)); |
9 | assertEquals(map, map2); |
10 | |
11 | map.put("c", "d"); |
12 | map.put("a", "b"); |
13 | map.put("d", "e"); |
14 | map.put("e", "f"); |
15 | print(s = struct(map)); |
16 | map2 = (Map) unstruct(s); |
17 | assertEquals(name, className(map2)); |
18 | assertEquals(map, map2); |
19 | |
20 | print("OK"); |
21 | } |
Began life as a copy of #1015843
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: | #1024875 |
Snippet name: | test_structure_synchronizedTreeMap |
Eternal ID of this version: | #1024875/1 |
Text MD5: | fb62a80176e690175d7150cebf293916 |
Transpilation MD5: | 01a53656d96e656a4ea52c16ed9cf449 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-28 12:07:50 |
Source code size: | 498 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 250 / 332 |
Referenced in: | [show references] |