Libraryless. Click here for Pure Java version (3706L/22K).
1 | svoid test_AscendingOrderIntObjectMap() { |
2 | new AscendingOrderIntObjectMap<S> map; |
3 | assertEqualsVerbose(null, map.get(2)); |
4 | map.put(2, "hello"); |
5 | assertEqualsVerbose("hello", map.get(2)); |
6 | assertEqualsVerbose(null, map.get(5)); |
7 | assertEqualsVerbose(null, map.get(10)); |
8 | map.put(5, "world"); |
9 | assertEqualsVerbose("hello", map.get(2)); |
10 | assertEqualsVerbose("world", map.get(5)); |
11 | assertEqualsVerbose(null, map.get(10)); |
12 | map.put(10, "yo"); |
13 | assertEqualsVerbose("hello", map.get(2)); |
14 | assertEqualsVerbose("world", map.get(5)); |
15 | assertEqualsVerbose("yo", map.get(10)); |
16 | } |
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: | 171 / 245 |
Version history: | 2 change(s) |
Referenced in: | [show references] |