From 00d129f9b89e8098a671e786c31400c36f82267c Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Wed, 9 Feb 2022 17:57:11 +0100 Subject: [PATCH] tictactoe: added test case to check if player 2 has won in row 1 --- 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 1dcc42b..f045b5f 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -153,6 +153,10 @@ class GameLogicTest { Arguments.of("check win in row 0 for player 2", 'o', true, new char[][] {{'o', 'o', 'o'}, {'-', '-', '-'}, + {'-', '-', '-'}}), + Arguments.of("check win in row 1 for player 2", 'o', true, new char[][] + {{'-', '-', '-'}, + {'o', 'o', 'o'}, {'-', '-', '-'}}) ); }