From 52622fa9906ff320630a000bf74546975ebd8c87 Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Mon, 14 Feb 2022 18:23:59 +0100 Subject: [PATCH] tictactoe: added test case to check tied game --- 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 4f0e38b..d824e3d 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -234,7 +234,11 @@ class GameLogicTest { Arguments.of("end of game with win for player 2", true, new char[][] {{'x', 'x', 'o'}, {'o', 'o', 'o'}, - {'x', 'o', 'x'}}) + {'x', 'o', 'x'}}), + Arguments.of("check tied game", true, new char[][] + {{'x', 'x', 'o'}, + {'o', 'x', 'o'}, + {'x', 'o', 'x'}}) ); }