Libraryless. Click here for Pure Java version (3414L/20K).
1 | svoid test_MultiSetMapWithTopTen() {
|
2 | new MultiSetMapWithTopTen mm; |
3 | mm.put("a", "b");
|
4 | mm.put("a", "c");
|
5 | mm.put("b", "e");
|
6 | mm.put("b", "f");
|
7 | mm.put("b", "g");
|
8 | mm.put("c", "x");
|
9 | assertEqualsVerbose(ll("b", "a", "c"), asList(mm.keysByPopularityIterator()));
|
10 | mm.remove("b", "f");
|
11 | assertEqualsVerbose(ll("a", "b", "c"), asList(mm.keysByPopularityIterator()));
|
12 | mm.remove("b", "g");
|
13 | assertEqualsVerbose(ll("a", "c", "b"), asList(mm.keysByPopularityIterator()));
|
14 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031459 |
| Snippet name: | test_MultiSetMapWithTopTen (OK) |
| Eternal ID of this version: | #1031459/5 |
| Text MD5: | 0d45b783744576f4eac8341004e8addf |
| Transpilation MD5: | 4f09c65c96e9babd5b2869da3098e8b1 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-14 01:11:17 |
| Source code size: | 492 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 353 / 480 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |