From 0d687f38e6b4ae278e0dfc28ba8cd0e4a0676c9a Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Wed, 9 Feb 2022 17:22:00 +0100 Subject: [PATCH] tictactoe: added test case for check win in row 0 --- 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 83891b1..266d2bc 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -145,7 +145,11 @@ class GameLogicTest { Arguments.of("check win in column 0 for player 2", 'o', false, new char[][] {{'o', '-', '-'}, {'o', '-', '-'}, - {'-', '-', '-'}}) + {'-', '-', '-'}}), + Arguments.of("check win in row 0 for player 1", 'x', true, new char[][] + {{'x', 'x', 'x'}, + {'o', '-', '-'}, + {'-', '-', 'o'}}) ); }