Browse Source

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

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

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

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

Loading…
Cancel
Save