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).

!759

p {
  new SmallestListMultiMap<S, S> mm;
  assertEquals(0, mm.size());
  mm.put("a", "bla");
  mm.put("a", "blubb");
  mm.put("b", "yes");
  printStruct(mm.asMap());
  assertEquals(ll("bla", "blubb"), mm.get("a"));
  assertEquals(ll("yes"), mm.get("b"));
  assertEquals(ll(), mm.get("c"));
  assertEquals(3, mm.size());
  mm.remove("a", "bla");
  assertEquals(2, mm.size());
  assertEquals(ll("blubb"), mm.get("a"));
  assertEquals("blubb", mm.getFirst("a"));
  print("OK");
}

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: 611 / 1346
Version history: 2 change(s)
Referenced in: [show references]