Commit b390aa7d authored by Adam Blank's avatar Adam Blank
Browse files

Revert "Merge branch 'jkarras' into 'master'"

This reverts merge request !3
parent b35e36b1
Showing with 2 additions and 2 deletions
+2 -2
......@@ -88,7 +88,7 @@ public class GuesserTests {
@Test
public void testMakeGuessExceptionsInRandom() {
Constructor c = Reflection.getConstructor(RandomHangmanChooser.class, int.class, int.class);
RandomHangmanChooser chooser = Reflection.newInstance(c, 3, 1);
RandomHangmanChooser chooser = Reflection.newInstance(c, 1, 1);
Method m = Reflection.getMethod(RandomHangmanChooser.class, "makeGuess", char.class);
IntStream.range(0, 20).forEach(i -> assertThrows(IllegalArgumentException.class, () -> m.invoke(chooser, (char) ('a' - (i + 1)))));
IntStream.range(0, 20).forEach(i -> assertThrows(IllegalArgumentException.class, () -> m.invoke(chooser, (char) ('z' + (i + 1)))));
......@@ -204,7 +204,7 @@ public class GuesserTests {
@Test
public void testMakeGuessExceptionsInEvil() {
Constructor c = Reflection.getConstructor(EvilHangmanChooser.class, int.class, int.class);
EvilHangmanChooser chooser = Reflection.newInstance(c, 3, 1);
EvilHangmanChooser chooser = Reflection.newInstance(c, 1, 1);
Method m = Reflection.getMethod(EvilHangmanChooser.class, "makeGuess", char.class);
IntStream.range(0, 20).forEach(i -> assertThrows(IllegalArgumentException.class, () -> m.invoke(chooser, (char) ('a' - (i + 1)))));
IntStream.range(0, 20).forEach(i -> assertThrows(IllegalArgumentException.class, () -> m.invoke(chooser, (char) ('z' + (i + 1)))));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment