From 0dd7c9e92b4d7e4856c052c3aa1d55b4ccb977d0 Mon Sep 17 00:00:00 2001 From: Sabina Grisi Date: Fri, 9 Feb 2024 23:12:34 +0100 Subject: [PATCH] Unittest CheckForWin_Vertical_1_4_7 --- test/test_tictactoe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index 88cccbb..3983cc9 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -32,4 +32,10 @@ void test_CheckForWin_Horizontal_7_8_9(void) { TEST_ASSERT(checkForWin(1, 2, 3, 4, 5, 6, 11, 11, 11, 11) == 1); } +// Testfall für die Funktion checkForWin - Vertikaler Sieg +void test_CheckForWin_Vertical_1_4_7(void) { + // Teste vertikalen Sieg in der ersten Spalte + TEST_ASSERT(checkForWin(10, 2, 3, 10, 5, 6, 10, 8, 9, 10) == 1); +} + #endif // TEST \ No newline at end of file