Browse Source

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

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

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

@ -189,7 +189,11 @@ class GameLogicTest {
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'}})
{'o', 'o', 'x'}}),
Arguments.of("check win in row 2 for player 2 with full board", 'o', true, new char[][]
{{'x', 'x', 'o'},
{'o', 'x', 'x'},
{'o', 'o', 'o'}})
);
}

Loading…
Cancel
Save