Browse Source

Unittest CheckForWin_Tie

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

6
test/test_tictactoe.c

@ -59,4 +59,10 @@ void test_CheckForWin_Diagonal_Left_To_Right(void) {
TEST_ASSERT(checkForWin(1, 2, 11, 4, 11, 6, 11, 8, 9, 11) == 1); TEST_ASSERT(checkForWin(1, 2, 11, 4, 11, 6, 11, 8, 9, 11) == 1);
} }
// Testfall für die Funktion checkForWin - Unentschieden
void test_CheckForWin_Tie(void) {
// Teste Unentschieden
TEST_ASSERT(checkForWin(11, 10, 11, 11, 10, 10, 10, 11, 10, 11) == 0);
}
#endif // TEST #endif // TEST
Loading…
Cancel
Save