test that FastList#clear() sets all elements to null (#1001)

pull/1002/head
testingsavvy 8 years ago committed by Brett Wooldridge
parent 4d484ea635
commit 8ec0c63282

@ -124,6 +124,10 @@ public class TestFastList
assertNotEquals(0, list.size());
list.clear();
assertEquals(0, list.size());
// also check that all elements are now null
for (int i = 0; i < 100; i++) {
assertEquals(null, list.get(i));
}
}
@Test

Loading…
Cancel
Save