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