From 9cba867ba50069c788e7c897c52e2db5ca5ecd8f Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 20:44:12 +0100 Subject: [PATCH] test_fakultaet_1 Fakultaet von 4 = 24 --- test/test_fakultaet.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_fakultaet.c b/test/test_fakultaet.c index 2e30f14..37bb5c4 100644 --- a/test/test_fakultaet.c +++ b/test/test_fakultaet.c @@ -12,4 +12,13 @@ void setUp(void) void tearDown(void) { } + +void test_fakultaet_1(void) +{ + int result, expected = 24; + + result = berechneFakultaetInt(4); + + TEST_ASSERT_EQUAL_INT(expected, result); +} #endif //TEST \ No newline at end of file