Download Jar. Libraryless. Click here for Pure Java version (889L/6K).
1 | !7 |
2 | |
3 | p { |
4 | L<S> l = new ImmutableSortedList(ll("hello", "world", "abc")); |
5 | assertEquals(3, l(l)); |
6 | assertTrue(l.contains("hello")); |
7 | assertTrue(l.contains("world")); |
8 | assertTrue(l.contains("abc")); |
9 | assertFalse(l.contains("whatever")); |
10 | assertEquals(0, l.indexOf("abc")); |
11 | assertEquals(-1, l.indexOf("huh")); |
12 | assertEquals(2, l.indexOf("world")); |
13 | assertEquals("hello", l.get(1)); |
14 | print("OK!"); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010954 |
Snippet name: | Test ImmutableSortedList [OK] |
Eternal ID of this version: | #1010954/2 |
Text MD5: | 281aee4d0e68dd3f8b9df0a12e36c58b |
Transpilation MD5: | 3d1fe65e03d45eae33e9a75da4897106 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-10 15:00:14 |
Source code size: | 420 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 479 / 1118 |
Version history: | 1 change(s) |
Referenced in: | [show references] |