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