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

Method testSize

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

Test of size method, of class IntSet.

()

Source from the content-addressed store, hash-verified

112 * Test of size method, of class IntSet.
113 */
114 @Test
115 public void testSize()
116 {
117 System.out.println("size");
118 IntSortedSet set = new IntSortedSet();
119 assertEquals(0, set.size());
120 set.add(1);
121 assertEquals(1, set.size());
122 set.add(1);
123 set.add(2);
124 assertEquals(2, set.size());
125 set.add(5);
126 set.add(-4);
127 set.add(2);
128 assertEquals(4, set.size());
129 }
130
131
132 @Test

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected