Browse Source

tictactoe: added test case to check if player 1 has won in row 1 with full board

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

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

@ -185,6 +185,10 @@ class GameLogicTest {
Arguments.of("check win in row 0 for player 1 with full board", 'x', true, new char[][]
{{'x', 'x', 'x'},
{'x', 'o', 'o'},
{'o', 'o', 'x'}}),
Arguments.of("check win in row 1 for player 1 with full board", 'x', true, new char[][]
{{'x', 'x', 'o'},
{'x', 'x', 'x'},
{'o', 'o', 'x'}})
);
}

Loading…
Cancel
Save