From cc3cf57441e6ee9ee78a761581c862b29429727c Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 20:53:24 +0100 Subject: [PATCH] test_fakultaet_2 Fakultaet_Double von 4.0 = 24.0 --- test/test_fakultaet.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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