Browse Source

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

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

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

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

Loading…
Cancel
Save