(int runs, int k)
| 130 | } |
| 131 | |
| 132 | public static void test (int runs, int k) { |
| 133 | // k = kth order statistic |
| 134 | comparisonsMade = 0; |
| 135 | perf.reset(); |
| 136 | allPerf.reset(); |
| 137 | allRandom(); |
| 138 | enemy.shuffle(); |
| 139 | player.shuffle(); |
| 140 | for (int i = 0; i < runs; i++) { |
| 141 | getKthNearestEnemy(quiet, k); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | public static void allRandom () { |
| 146 | for (Dummy d : player) { |
no test coverage detected