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

Method testSize

JSAT/test/jsat/utils/SimpleListTest.java:96–110  ·  view source on GitHub ↗

Test of size method, of class SimpleList.

()

Source from the content-addressed store, hash-verified

94 * Test of size method, of class SimpleList.
95 */
96 @Test
97 public void testSize()
98 {
99 System.out.println("size");
100 SimpleList instance = new SimpleList();
101 assertEquals(0, instance.size());
102 instance.add("a");
103 instance.add("b");
104 assertEquals(2, instance.size());
105 assertEquals("a", instance.remove(0));
106 assertEquals(1, instance.size());
107 instance.add("c");
108 instance.add("d");
109 assertEquals(3, instance.size());
110 }
111
112 @Test
113 public void testAdd()

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.95
addMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected