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

Method testAdd

JSAT/test/jsat/utils/SimpleListTest.java:112–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 }
111
112 @Test
113 public void testAdd()
114 {
115 System.out.println("add");
116 SimpleList<String> instance = new SimpleList<String>();
117 instance.add("a");
118 instance.add(0, "c");
119 instance.add(1, "b");
120 assertEquals("c", instance.get(0));
121 assertEquals("b", instance.get(1));
122 assertEquals("a", instance.get(2));
123 }
124
125 /**
126 * Test of set method, of class SimpleList.

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected