Browse Source

Unittest CheckForWin_Diagonal_Right_To_Left

remotes/origin/tictactoedev
Sabina Grisi 11 months ago
parent
commit
55a25218e2
  1. 6
      test/test_tictactoe.c

6
test/test_tictactoe.c

@ -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
|||||||
100:0
Loading…
Cancel
Save