Browse Source

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

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

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

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

Loading…
Cancel
Save