From 0684b200660fadeea815f146051880d727cf0c50 Mon Sep 17 00:00:00 2001 From: Sabina Grisi Date: Fri, 9 Feb 2024 23:17:07 +0100 Subject: [PATCH] Unittest CheckForWin_Tie --- test/test_tictactoe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index e1453e5..6822d99 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -59,4 +59,10 @@ void test_CheckForWin_Diagonal_Left_To_Right(void) { TEST_ASSERT(checkForWin(1, 2, 11, 4, 11, 6, 11, 8, 9, 11) == 1); } +// Testfall für die Funktion checkForWin - Unentschieden +void test_CheckForWin_Tie(void) { + // Teste Unentschieden + TEST_ASSERT(checkForWin(11, 10, 11, 11, 10, 10, 10, 11, 10, 11) == 0); +} + #endif // TEST \ No newline at end of file