Browse Source

Unittest CheckForWin_Vertical_1_4_7

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

6
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
Loading…
Cancel
Save