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

8
LINES

< > BotCompany Repo | #1031872 // test_structure_OptimizedMultiSet (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (7818L) is out of date.

svoid test_structure_OptimizedMultiSet() {
  new OptimizedMultiSet set;
  set.add("a");
  set = restructureVerbose(set);
  assertEquals(set.getMostPopularEntry(), "a");
  assertEquals(1, set.get("a"));
  assertEquals(1, set.size());
}

Author comment

Began life as a copy of #1031248

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031872
Snippet name: test_structure_OptimizedMultiSet (OK)
Eternal ID of this version: #1031872/4
Text MD5: 255fb5e978519404976678df64844809
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-23 17:14:46
Source code size: 241 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 310
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)