Browse Source

tictactoe: added test case to check if player 2 has won in row 1

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

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

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

Loading…
Cancel
Save