Suspect this is the fix to #203, but I'm unsure

This commit is contained in:
Andrew Steinborn
2019-05-10 04:53:57 -04:00
parent c26dc75c44
commit 74afcee9ba
2 changed files with 12 additions and 0 deletions

View File

@@ -44,6 +44,9 @@ class CappedCollectionTest {
assertTrue(coll.addAll(doesFill2), "did not add items");
assertThrows(IllegalStateException.class, () -> coll.addAll(overfill),
"items added to collection although it is too full");
assertFalse(coll.addAll(doesFill1), "added items?!?");
assertEquals(3, coll.size(), "collection grew in size unexpectedly");
}
}