Browse Source

Unittest CheckForWin_Diagonal_Left_To_Right

remotes/origin/tictactoedev
Sabina Grisi 11 months ago
parent
commit
659803c95a
  1. 5
      test/test_tictactoe.c

5
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); 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 #endif // TEST
Loading…
Cancel
Save