Download Jar. Libraryless. Click here for Pure Java version (978L/7K).
!7 p { final new SimpleIntList l; assertEquals(0, l(l)); assertError(r { l.get(0) }); l.add(5); assertEquals(1, l(l)); assertEquals(5, l.get(0)); Iterator<Int> it = l.iterator(); assertTrue(it.hasNext()); assertEquals(5, it.next()); assertFalse(it.hasNext()); l.add((Int) 10); assertEquals(10, l.get(1)); int[] a = l.toIntArray(); assertEquals(2, l(a)); assertEquals(5, a[0]); assertEquals(10, a[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: | #1012239 |
Snippet name: | Test SimpleIntList (OK) |
Eternal ID of this version: | #1012239/3 |
Text MD5: | 72a3327a996ffe267cd3602acfffe63c |
Transpilation MD5: | b85e2aec7f38e72534a19bec76fe2a41 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-26 11:52:31 |
Source code size: | 486 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 492 / 1061 |
Version history: | 2 change(s) |
Referenced in: | -