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

19
LINES

< > BotCompany Repo | #1012281 // Test SmallestListMultiMap (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (2391L/15K).

1  
!759
2  
3  
p {
4  
  new SmallestListMultiMap<S, S> mm;
5  
  assertEquals(0, mm.size());
6  
  mm.put("a", "bla");
7  
  mm.put("a", "blubb");
8  
  mm.put("b", "yes");
9  
  printStruct(mm.asMap());
10  
  assertEquals(ll("bla", "blubb"), mm.get("a"));
11  
  assertEquals(ll("yes"), mm.get("b"));
12  
  assertEquals(ll(), mm.get("c"));
13  
  assertEquals(3, mm.size());
14  
  mm.remove("a", "bla");
15  
  assertEquals(2, mm.size());
16  
  assertEquals(ll("blubb"), mm.get("a"));
17  
  assertEquals("blubb", mm.getFirst("a"));
18  
  print("OK");
19  
}

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: #1012281
Snippet name: Test SmallestListMultiMap (OK)
Eternal ID of this version: #1012281/3
Text MD5: 889a38b772c9f593867c95fe99adf78b
Transpilation MD5: 9d9b51b2d3b5193cb70a7b270e8274de
Author: stefan
Category: javax / collections
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-27 11:03:24
Source code size: 502 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 613 / 1353
Version history: 2 change(s)
Referenced in: [show references]