You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
453 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <stdbool.h>
  6. #include "Springer.h"
  7. #include "Schachbrett.h"
  8. #include "Spieler.h"
  9. void test_istzugerlaubt_Springer_LegalMove(void) {
  10. char **Brett = Schachbrett_erstellen();
  11. // Teste legaler Zug für weißen Springer : b1 zu a3
  12. TEST_ASSERT_TRUE(istzugerlaubt_Springer(Brett, 1, 0, 0, 2, PLAYER_WHITE));
  13. Schachbrettspeicher_freigeben(Brett);
  14. }
  15. #endif // TEST