28 lines
383 B

#ifdef TEST
#include "unity.h"
#include "bmi.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_berechnung_BMI(void)
{
float result = calcBMI(2, 100);
float expected = 25;
TEST_ASSERT_EQUAL(expected, result);
}
void test_ausgabe_ergebnis(void)
{
const char *result = retResult(25);
char expected[] = "Normalgewicht";
TEST_ASSERT_EQUAL_STRING(expected, result);
}
#endif