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

Method testSortList

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

Source from the content-addressed store, hash-verified

66 }
67
68 @Test
69 public void testSortList()
70 {
71 IndexTable idt = new IndexTable(list);
72 for(int i = 0; i < idt.length()-1; i++)
73 assertTrue(list.get(idt.index(i)).compareTo(list.get(idt.index(i+1))) <= 0);
74 }
75
76 @Test
77 public void testSortListComparator()

Callers

nothing calls this directly

Calls 4

lengthMethod · 0.95
indexMethod · 0.95
compareToMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected