MCPcopy Index your code
hub / github.com/EdwardRaff/JSAT / testAdd

Method testAdd

JSAT/test/jsat/utils/IntSetTest.java:45–56  ·  view source on GitHub ↗

Test of add method, of class IntSet.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected