()
| 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() |