From 3ac4c2f22aafbbbd516eca1144d1150fa1054169 Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Thu, 10 Feb 2022 20:15:13 +0100 Subject: [PATCH] tictactoe: added test case to check if player 2 has won in column 1 with full board --- src/test/java/de/tims/tictactoe/GameLogicTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/de/tims/tictactoe/GameLogicTest.java b/src/test/java/de/tims/tictactoe/GameLogicTest.java index 075945d..1210ed1 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/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'}}) ); }