use of org.eclipse.collections.api.set.primitive.ImmutableBooleanSet in project eclipse-collections by eclipse.
the class BooleanSetsTest method newSetWith.
@Test
public void newSetWith() {
ImmutableBooleanSet set = BooleanSets.immutable.with();
Assert.assertEquals(set, BooleanSets.immutable.with(set.toArray()));
Assert.assertEquals(set = set.newWith(true), BooleanSets.immutable.with(true));
Assert.assertEquals(set = set.newWith(false), BooleanSets.immutable.with(true, false));
Assert.assertEquals(set = set.newWith(true), BooleanSets.immutable.with(true, false, true));
Assert.assertEquals(set = set.newWith(false), BooleanSets.immutable.with(true, false, true, false));
Assert.assertEquals(set = set.newWith(true), BooleanSets.immutable.with(true, false, true, false, true));
Assert.assertEquals(set = set.newWith(false), BooleanSets.immutable.with(true, false, true, false, true, false));
Assert.assertEquals(set = set.newWith(true), BooleanSets.immutable.with(true, false, true, false, true, false, true));
Assert.assertEquals(set = set.newWith(true), BooleanSets.immutable.with(true, false, true, false, true, false, true, true));
Assert.assertEquals(set = set.newWith(true), BooleanSets.immutable.with(true, false, true, false, true, false, true, true, true));
Assert.assertEquals(set = set.newWith(false), BooleanSets.immutable.with(true, false, true, false, true, false, true, true, true, false));
Assert.assertEquals(set = set.newWith(true), BooleanSets.immutable.with(true, false, true, false, true, false, true, true, true, false, true));
Assert.assertEquals(set = set.newWith(false), BooleanSets.immutable.with(true, false, true, false, true, false, true, true, true, false, true, false));
}
Aggregations