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.

44 lines
824 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include <stdlib.h>
  4. #include "Schachbrett.h"
  5. #include "Historie.h"
  6. #include "En_Passaut.h"
  7. #include "Bauer.h"
  8. void setUp(void) {
  9. }
  10. void tearDown(void) {
  11. }
  12. void test_En_Passaut_Weiss(void) {
  13. /* void test_hinzufuegen_historie(void) {
  14. int MAX_ZUEGE = 70;
  15. int ZUG_INFO = 5;
  16. // Historie erstellen
  17. int** meineHistorie = erstellen_historie();
  18. // Testdaten
  19. int startX = 1;
  20. int startY = 2;
  21. int endX = 3;
  22. int endY = 4;
  23. Player currentPlayer = PLAYER_WHITE;
  24. int anzahl_Zuege = 0;
  25. // Züge zur Historie hinzufügen
  26. hinzufuegen_historie(meineHistorie, startX, startY, endX, endY, currentPlayer, anzahl_Zuege);
  27. // Speicher freigeben
  28. for (int i = 0; i < MAX_ZUEGE; i++) {
  29. free(meineHistorie[i]);
  30. }
  31. }
  32. */
  33. }
  34. #endif // TEST