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.

38 lines
493 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #include "unity.h"
  2. #include <Umgebung.h>
  3. #include <stdlib.h>
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. void test_Umgebung_RealU(void){
  11. int realU[N][N];
  12. realU[14][15] = 0;
  13. int result = RealU(realU);
  14. TEST_ASSERT_EQUAL_INT(1, result);
  15. }
  16. void test_Umgebung_delay(void){
  17. int result = delay(2);
  18. TEST_ASSERT_EQUAL_INT(2, result);
  19. }
  20. void test_Umgebung_delay2(void){
  21. int result = delay(4);
  22. TEST_ASSERT_EQUAL_INT(4, result);
  23. }