(String guess, String solution)
| 131 | } |
| 132 | |
| 133 | public static boolean test(String guess, String solution) { |
| 134 | Result res1 = estimate(guess, solution); |
| 135 | Result res2 = estimateBad(guess, solution); |
| 136 | if (res1.hits == res2.hits && res1.pseudoHits == res2.pseudoHits) { |
| 137 | return true; |
| 138 | } else { |
| 139 | System.out.println("FAIL: (" + guess + ", " + solution + "): " + res1.toString() + " | " + res2.toString()); |
| 140 | return false; |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | public static boolean testRandom() { |
| 145 | String guess = randomString(); |
no test coverage detected