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

8
LINES

< > BotCompany Repo | #1031786 // test_SmallArrayBasedMap

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

Libraryless. Click here for Pure Java version (5331L/32K).

1  
svoid test_SmallArrayBasedMap() {
2  
  Map map = SmallArrayBasedMap(litorderedmap("hello" := "world", "a" := "b"));
3  
  printStruct(map);
4  
  assertEqualsVerbose("b", map.get("a"));
5  
  assertEqualsVerbose("world", map.get("hello"));
6  
  assertEqualsVerbose(2, map.entrySet().size());
7  
  assertEqualsVerbose(llPairs("hello", "world", "a" := "b"), mapToPairs(map));
8  
}

Author comment

Began life as a copy of #1031059

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031786
Snippet name: test_SmallArrayBasedMap
Eternal ID of this version: #1031786/2
Text MD5: 79f7b48b43cf14cab59ed3427f18dfe2
Transpilation MD5: 190d669ce338d2480d7604dbd0dca6d4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 18:45:56
Source code size: 361 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 145 / 221
Version history: 1 change(s)
Referenced in: [show references]