diff --git a/test/test_fakultaet.c b/test/test_fakultaet.c index 37bb5c4..7db2fd4 100644 --- a/test/test_fakultaet.c +++ b/test/test_fakultaet.c @@ -21,4 +21,13 @@ void test_fakultaet_1(void) TEST_ASSERT_EQUAL_INT(expected, result); } + +void test_fakultaet_2(void) +{ + double result, expected = 24.0; + + result = berechneFakultaetInt(4.0); + + TEST_ASSERT_EQUAL_DOUBLE(expected, result); +} #endif //TEST \ No newline at end of file