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