From 54097b5c027eacb38786209335d584310d783c13 Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Wed, 9 Feb 2022 17:17:25 +0100 Subject: [PATCH] tictactoe: refactored test cases for checkForWin method --- .../java/de/tims/tictactoe/GameLogicTest.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/test/java/de/tims/tictactoe/GameLogicTest.java b/src/test/java/de/tims/tictactoe/GameLogicTest.java index 718caaf..83891b1 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -134,18 +134,18 @@ class GameLogicTest { private static Stream testCasesForCheckForWin() { return Stream.of( - Arguments.of("check win for player 1", 'x', true, new char[][] - {{'x', '-', '-'}, - {'x', '-', '-'}, - {'x', '-', '-'}}), - Arguments.of("check win for player 2", 'o', true, new char[][] - {{'o', '-', '-'}, - {'o', '-', '-'}, - {'o', '-', '-'}}), - Arguments.of("check win for player 2", 'o', false, new char[][] - {{'o', '-', '-'}, - {'o', '-', '-'}, - {'-', '-', '-'}}) + Arguments.of("check win in column 0 for player 1", 'x', true, new char[][] + {{'x', '-', '-'}, + {'x', '-', '-'}, + {'x', '-', '-'}}), + Arguments.of("check win in column 0 for player 2", 'o', true, new char[][] + {{'o', '-', '-'}, + {'o', '-', '-'}, + {'o', '-', '-'}}), + Arguments.of("check win in column 0 for player 2", 'o', false, new char[][] + {{'o', '-', '-'}, + {'o', '-', '-'}, + {'-', '-', '-'}}) ); }