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

Method testApply_List

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

Source from the content-addressed store, hash-verified

99 }
100
101 @Test
102 public void testApply_List()
103 {
104 IndexTable idt = new IndexTable(array);
105 List<Double> test = new DoubleList();
106 for(double d : array)
107 test.add(d);
108
109 idt.apply(test);
110 for(int i = 0; i < test.size()-1; i++)
111 assertTrue(test.get(i) <= test.get(i+1));
112 }
113
114 @Test
115 public void testSwap()

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
applyMethod · 0.95
sizeMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected