use of org.eclipse.collections.api.collection.primitive.ImmutableCharCollection in project eclipse-collections by eclipse.
the class AbstractImmutableCollectionTestCase method collectChar.
@Test
public void collectChar() {
ImmutableCollection<Integer> integers = this.classUnderTest();
ImmutableCharCollection immutableCollection = integers.collectChar(PrimitiveFunctions.unboxIntegerToChar());
Verify.assertSize(integers.size(), immutableCollection);
Assert.assertEquals(integers, immutableCollection.collect(Integer::valueOf));
}
Aggregations