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.

29 lines
415 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "schach.h"
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. void test_print_Schachfeld(void){
  11. /* arrange */
  12. char expected = 'S';
  13. int x = 8;
  14. int y = 8;
  15. /* act */
  16. char** Spielfeld = create_Schachfeld(x, y);
  17. /* assert */
  18. TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[0][7]);
  19. TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[1][0]);
  20. }
  21. #endif // TEST