Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1012722 // Test WeakCompactHashSet (so far, it works)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 1113K of libraries. Click here for Pure Java version (7737L/41K).

1  
!7
2  
3  
cm > DynTestModule {
4  
  void test {
5  
    new WeakCompactHashSet 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  
}

Author comment

Began life as a copy of #1012356

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012722
Snippet name: Test WeakCompactHashSet (so far, it works)
Eternal ID of this version: #1012722/4
Text MD5: 783a2ddc8d248292eb42ac82bd30a8f4
Transpilation MD5: b0c5742dc5ecc4dfa5988a3b1afba647
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-07-11 15:58:17
Source code size: 288 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 427 / 539
Version history: 3 change(s)
Referenced in: [show references]