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