|
|
@ -48,4 +48,10 @@ void test_CheckForWin_Vertical_3_6_9(void) { |
|
|
|
TEST_ASSERT(checkForWin(1, 2, 11, 4, 5, 11, 7, 8, 11, 11) == 1); |
|
|
|
} |
|
|
|
|
|
|
|
// Testfall für die Funktion checkForWin - Diagonaler Sieg |
|
|
|
void test_CheckForWin_Diagonal_Right_To_Left(void) { |
|
|
|
// Teste diagonalen Sieg von links oben nach rechts unten |
|
|
|
TEST_ASSERT(checkForWin(10, 2, 3, 4, 10, 6, 7, 8, 10, 10) == 1); |
|
|
|
} |
|
|
|
|
|
|
|
#endif // TEST |
xxxxxxxxxx