@Test public void addingAllToOtherList() { MutableList<String> newList = FastList.newList(this.list); newList.add("2"); Verify.assertItemAtIndex("1", 0, newList); Verify.assertItemAtIndex("2", 1, newList); }
@Test public void get() { Verify.assertItemAtIndex("1", 0, this.list); Verify.assertThrows(IndexOutOfBoundsException.class, () -> this.list.get(1)); Verify.assertThrows(IndexOutOfBoundsException.class, () -> this.list.get(-1)); }