Uses 1113K of libraries. Click here for Pure Java version (7930L/41K).
1 | !7 |
2 | |
3 | cm > DynTestModule {
|
4 | void test {
|
5 | new WeakCompactLinkedHashSet set; |
6 | set.add("hello");
|
7 | set.add("world");
|
8 | print(set); |
9 | assertEquals(2, l(set)); |
10 | assertEquals("hello", set.find(new String("hello")));
|
11 | assertNull(set.find("hallo"));
|
12 | print("OK");
|
13 | } |
14 | } |
Began life as a copy of #1012722
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032096 |
| Snippet name: | Test WeakCompactLinkedHashSet (so far, it works) |
| Eternal ID of this version: | #1032096/1 |
| Text MD5: | f16b95a1da5465e3cbc12dadb121746d |
| Transpilation MD5: | 07c857d8709dae7d21eef3bf958a3bc8 |
| Author: | stefan |
| Category: | javax / collections |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-11 14:43:12 |
| Source code size: | 294 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 354 / 483 |
| Referenced in: | [show references] |