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

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

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: 75 / 125
Version history: 1 change(s)
Referenced in: [show references]