use of org.eclipse.collections.api.bag.primitive.ImmutableShortBag in project eclipse-collections by eclipse.
the class ImmutableBagTestCase method collectShort.
@Override
@Test
public void collectShort() {
super.collectShort();
ImmutableShortBag result = this.newBag().collectShort(Short::parseShort);
Assert.assertEquals(this.numKeys(), result.sizeDistinct());
for (int i = 1; i <= this.numKeys(); i++) {
Assert.assertEquals(i, result.occurrencesOf((short) i));
}
}
Aggregations