/** Tests {@link IntArray#removeAll}. */ @Test public void testRemoveAll() { final int[] raw = { 3, 5, 8, 13, 21 }; final IntArray array = new IntArray(raw.clone()); final IntArray toRemove = new IntArray(new int[] { 3, 8, 21 }); assertEquals(raw.length, array.size()); array.removeAll(toRemove); assertEquals(raw.length - 3, array.size()); assertEquals(raw[1], array.getValue(0)); assertEquals(raw[3], array.getValue(1)); }