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.

30 lines
546 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include <stdlib.h>
  4. #include "PuzzleI.h"
  5. #include "Spieler.h"
  6. #include "Koenig.h"
  7. #include "Turm.h"
  8. void setUp(void) {
  9. }
  10. void tearDown(void) {
  11. }
  12. void test_puzzlebrett_erstellen(void) {
  13. char** brett = Puzzlebrett_erstellen();
  14. print_Puzzlebrett(brett);
  15. }
  16. void test_loesung_abchecken_kein_Koenig(void) {
  17. char** brett = Puzzlebrett_erstellen();
  18. // König entfernen
  19. brett[7][1] = ' ';
  20. TEST_ASSERT_FALSE(loesung_abchecken(brett));
  21. Puzzlebrettspeicher_freigeben(brett);
  22. }
  23. #endif // TEST