MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / testAdd

Method testAdd

JSAT/test/jsat/utils/IntSortedSetTest.java:49–60  ·  view source on GitHub ↗

Test of add method, of class IntSet.

()

Source from the content-addressed store, hash-verified

47 * Test of add method, of class IntSet.
48 */
49 @Test
50 public void testAdd()
51 {
52 System.out.println("add");
53 IntSortedSet set = new IntSortedSet();
54 assertFalse(set.add(null));
55 assertTrue(set.add(1));
56 assertTrue(set.add(2));
57 assertFalse(set.add(1));
58 assertFalse(set.add(null));
59 assertTrue(set.add(3));
60 }
61
62 /**
63 * Test of iterator method, of class IntSet.

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected