From d1d0aa119d90e7c412beeb24332ae97c002dac81 Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Mon, 14 Feb 2022 18:26:19 +0100 Subject: [PATCH] tictactoe: added test case to check not yed finished 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 d824e3d..fbceac8 100644 --- a/src/test/java/de/tims/tictactoe/GameLogicTest.java +++ b/src/test/java/de/tims/tictactoe/GameLogicTest.java @@ -238,7 +238,11 @@ class GameLogicTest { Arguments.of("check tied game", true, new char[][] {{'x', 'x', 'o'}, {'o', 'x', 'o'}, - {'x', 'o', 'x'}}) + {'x', 'o', 'x'}}), + Arguments.of("check not yet finished game", false, new char[][] + {{'x', 'x', '-'}, + {'o', 'o', '-'}, + {'x', 'o', 'x'}}) ); }