From a66dbe0a16bd1caf8448cf19dc90dba4b6f32275 Mon Sep 17 00:00:00 2001 From: Sabina Grisi Date: Fri, 9 Feb 2024 23:10:15 +0100 Subject: [PATCH] Unittest CheckForWin_Horizontal_4_5_6 --- test/test_tictactoe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index bbee7bf..47d4c21 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -22,4 +22,9 @@ void test_CheckForWin_Horizontal_1_2_3(void) { TEST_ASSERT(checkForWin(10, 10, 10, 4, 5, 6, 7, 8, 9, 10) == 1); } +void test_CheckForWin_Horizontal_4_5_6(void) { + // Teste horizontalen Sieg in der zweiten Zeile + TEST_ASSERT(checkForWin(1, 2, 3, 11, 11, 11, 7, 8, 9, 11) == 1); +} + #endif // TEST \ No newline at end of file