From ea34141d3cc72b6d65b4c6b2e441a0ec45f30318 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 21:09:10 +0100 Subject: [PATCH] factorial Funktion test --- src/test/test_funktionen.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 4423ae8..b0f2bd4 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -55,4 +55,11 @@ void test_power(void) { // Add more test cases for different inputs and expected outputs } +void test_factorial(void) { + int result = factorial(5); + TEST_ASSERT_EQUAL_INT(120, result); + // Add more test cases for different inputs and expected outputs +} + + #endif \ No newline at end of file