From 659803c95aa147a9ebc1c97f4889ff273a1fdb65 Mon Sep 17 00:00:00 2001 From: Sabina Grisi Date: Fri, 9 Feb 2024 23:15:43 +0100 Subject: [PATCH] Unittest CheckForWin_Diagonal_Left_To_Right --- test/test_tictactoe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index d7ba005..e1453e5 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -54,4 +54,9 @@ void test_CheckForWin_Diagonal_Right_To_Left(void) { TEST_ASSERT(checkForWin(10, 2, 3, 4, 10, 6, 7, 8, 10, 10) == 1); } +void test_CheckForWin_Diagonal_Left_To_Right(void) { + // Teste diagonalen Sieg von rechts oben nach links unten + TEST_ASSERT(checkForWin(1, 2, 11, 4, 11, 6, 11, 8, 9, 11) == 1); +} + #endif // TEST \ No newline at end of file