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