Libraryless. Click here for Pure Java version (3706L/22K).
svoid test_AscendingOrderIntObjectMap() { new AscendingOrderIntObjectMap<S> map; assertEqualsVerbose(null, map.get(2)); map.put(2, "hello"); assertEqualsVerbose("hello", map.get(2)); assertEqualsVerbose(null, map.get(5)); assertEqualsVerbose(null, map.get(10)); map.put(5, "world"); assertEqualsVerbose("hello", map.get(2)); assertEqualsVerbose("world", map.get(5)); assertEqualsVerbose(null, map.get(10)); map.put(10, "yo"); assertEqualsVerbose("hello", map.get(2)); assertEqualsVerbose("world", map.get(5)); assertEqualsVerbose("yo", map.get(10)); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031751 |
Snippet name: | test_AscendingOrderIntObjectMap (OK) |
Eternal ID of this version: | #1031751/3 |
Text MD5: | 6a7e5cfe49db3ef36e97d37be77198ab |
Transpilation MD5: | 56719f2d31ae0cce00ea3befa81f531a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-29 04:37:57 |
Source code size: | 594 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 169 / 241 |
Version history: | 2 change(s) |
Referenced in: | [show references] |