From 28796e3c160d88625ea09bbd4d4d0edd7388189f Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Thu, 10 Feb 2022 23:16:06 +0100 Subject: [PATCH] tictactoe: added test case to check if player 2 has won in row 2 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 1638a41..a66e9d4 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -189,7 +189,11 @@ class GameLogicTest { Arguments.of("check win in row 1 for player 1 with full board", 'x', true, new char[][] {{'x', 'x', 'o'}, {'x', 'x', 'x'}, - {'o', 'o', 'x'}}) + {'o', 'o', 'x'}}), + Arguments.of("check win in row 2 for player 2 with full board", 'o', true, new char[][] + {{'x', 'x', 'o'}, + {'o', 'x', 'x'}, + {'o', 'o', 'o'}}) ); }