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

Method testSize

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

Test of size method, of class IntSet.

()

Source from the content-addressed store, hash-verified

107 * Test of size method, of class IntSet.
108 */
109 @Test
110 public void testSize()
111 {
112 System.out.println("size");
113 IntSet set = new IntSet();
114 assertEquals(0, set.size());
115 set.add(1);
116 assertEquals(1, set.size());
117 set.add(1);
118 set.add(2);
119 assertEquals(2, set.size());
120 set.add(5);
121 set.add(-4);
122 set.add(2);
123 assertEquals(4, set.size());
124 }
125}

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected