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
334 B

2 years ago
  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_grundwert_NeedToImplement(void) {
  11. double prozent = 8;
  12. double ein = 10;
  13. double result = grundwert(ein, prozent);
  14. double ergebnis = (ein / prozent) * 100;
  15. TEST_ASSERT_EQUAL_FLOAT(ergebnis, result);
  16. }