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

15
LINES

< > BotCompany Repo | #1010954 // Test ImmutableSortedList [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (889L/6K).

!7

p {
  L<S> l = new ImmutableSortedList(ll("hello", "world", "abc"));
  assertEquals(3, l(l));
  assertTrue(l.contains("hello"));
  assertTrue(l.contains("world"));
  assertTrue(l.contains("abc"));
  assertFalse(l.contains("whatever"));
  assertEquals(0, l.indexOf("abc"));
  assertEquals(-1, l.indexOf("huh"));
  assertEquals(2, l.indexOf("world"));
  assertEquals("hello", l.get(1));
  print("OK!");
}

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