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