@Test(expected = UnsupportedOperationException.class) public void testAddAll2() throws Exception { Set<Integer> hashSet = new HashSet<>(); hashSet.add(1); hashSet.add(4); es.addAll(hashSet); }
@Test(expected = UnsupportedOperationException.class) public void testAddAll() throws Exception { IntSet rs = new RangeSet(5); es.addAll(rs); }
@Test(expected = UnsupportedOperationException.class) public void testAddAll1() throws Exception { SmallIntSet sis2 = new SmallIntSet(); es.addAll(sis2); }
@Test(expected = UnsupportedOperationException.class) public void testAddAll1() throws Exception { IntSet sis = new SingletonIntSet(3); SmallIntSet sis2 = new SmallIntSet(); sis.addAll(sis2); }
@Test(expected = UnsupportedOperationException.class) public void testAddAll2() throws Exception { Set<Integer> hashSet = CollectionFactory.makeSet(1, 4); IntSet sis = new SingletonIntSet(3); sis.addAll(hashSet); }
@Test(expected = UnsupportedOperationException.class) public void testAddAll() throws Exception { IntSet sis = new SingletonIntSet(3); IntSet rs = new RangeSet(5); sis.addAll(rs); }
@Test public void testAddAll1() throws Exception { IntSet rangeSet = new RangeSet(4); intSet.addAll(rangeSet); assertEquals(4, intSet.size()); }
@Test public void testAddAll2() throws Exception { intSet.addAll(CollectionFactory.makeSet(1, 4)); assertEquals(2, intSet.size()); }
@Test public void testAddAll() throws Exception { intSet.add(1); intSet.add(4); IntSet intSet2 = new SmallIntSet(); intSet2.addAll(intSet); assertEquals(2, intSet2.size()); }