From 84dcefef7ceea638d2f0b08f7f5203834494fa04 Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Thu, 10 Feb 2022 20:04:15 +0100 Subject: [PATCH] tictactoe: added test case to check if player 1 has won in column 2 --- src/test/java/de/tims/tictactoe/GameLogicTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/de/tims/tictactoe/GameLogicTest.java b/src/test/java/de/tims/tictactoe/GameLogicTest.java index e2ec822..a9a184c 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/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', '-', '-'},