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.

28 lines
383 B

11 months ago
11 months ago
  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "bmi.h"
  4. void setUp(void)
  5. {
  6. }
  7. void tearDown(void)
  8. {
  9. }
  10. void test_berechnung_BMI(void)
  11. {
  12. float result = calcBMI(2, 100);
  13. float expected = 25;
  14. TEST_ASSERT_EQUAL(expected, result);
  15. }
  16. void test_ausgabe_ergebnis(void)
  17. {
  18. const char *result = retResult(25);
  19. char expected[] = "Normalgewicht";
  20. TEST_ASSERT_EQUAL_STRING(expected, result);
  21. }
  22. #endif