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

Method testAdd_int_int

JSAT/test/jsat/utils/IntListTest.java:61–74  ·  view source on GitHub ↗

Test of clear method, of class IntList.

()

Source from the content-addressed store, hash-verified

59 * Test of clear method, of class IntList.
60 */
61 @Test
62 public void testAdd_int_int()
63 {
64 System.out.println("clear");
65 IntList list = new IntList();
66
67 for(int sizes = 2; sizes < 100; sizes++)
68 {
69 for(int i = sizes-1; i >= 0; i--)
70 list.add(0, i);
71 for(int i = 0; i < sizes; i++)
72 assertEquals(i, list.getI(i));
73 }
74 }
75
76}

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
getIMethod · 0.95

Tested by

no test coverage detected