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.

17 lines
297 B

  1. #include "unity.h"
  2. #include <math.h>
  3. #include "funktion.h"
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. void test_kreisFlaeche_NeedToImplement(void) {
  11. double r = 8;
  12. double result = kreisFlaeche(r);
  13. double ergebnis = M_PI * pow(r, 2);
  14. TEST_ASSERT_EQUAL_FLOAT(ergebnis, result);
  15. }