From 1ad993e109ffd9122b521e3e957db83084c9bb75 Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Wed, 9 Feb 2022 16:39:59 +0100 Subject: [PATCH] tictactoe: added test case for checkForWin method --- 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 43b702a..11bffca 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -137,7 +137,11 @@ class GameLogicTest { Arguments.of("check win for player 1", true, new char[][] {{'x', '-', '-'}, {'x', '-', '-'}, - {'x', '-', '-'}}) + {'x', '-', '-'}}), + Arguments.of("check win for player 2", true, new char[][] + {{'o', '-', '-'}, + {'o', '-', '-'}, + {'o', '-', '-'}}) ); }