Browse Source

tictactoe: added test case for check win in row 0

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

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

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

Loading…
Cancel
Save