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.

18 lines
331 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_prozentsatz_NeedToImplement(void) {
  11. double prozent = 8;
  12. double ein = 9;
  13. double result = prozentsatz(prozent, ein);
  14. double ergebnis = (ein / prozent);
  15. TEST_ASSERT_EQUAL_FLOAT(ergebnis, result);
  16. }