@ -25,7 +25,7 @@ const char* retResult(float points){
return "Starkes Uebergewicht";
}
int main()
int run_bmi()
{
float var1 = 0;
float var2 = 0;
@ -2,5 +2,6 @@
#define BMI_H
float calcBMI(float height, float weight);
const char* retResult(float points);
#endif //BMI_H
@ -19,4 +19,10 @@ 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