Browse Source

tictactoe: added test case for checkForWin method

tictactoe
Malte Schellhardt 3 years ago
committed by Lorenz Hohmann
parent
commit
1ad993e109
  1. 6
      src/test/java/de/tims/tictactoe/GameLogicTest.java

6
src/test/java/de/tims/tictactoe/GameLogicTest.java

@ -137,7 +137,11 @@ class GameLogicTest {
Arguments.of("check win for player 1", true, new char[][] Arguments.of("check win for player 1", true, new char[][]
{{'x', '-', '-'}, {{'x', '-', '-'},
{'x', '-', '-'}, {'x', '-', '-'},
{'x', '-', '-'}})
{'x', '-', '-'}}),
Arguments.of("check win for player 2", true, new char[][]
{{'o', '-', '-'},
{'o', '-', '-'},
{'o', '-', '-'}})
); );
} }

Loading…
Cancel
Save