Browse Source

factorial Funktion test

remotes/origin/Abdelrahman
Abdelrahman 11 months ago
parent
commit
ea34141d3c
  1. 7
      src/test/test_funktionen.c

7
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
Loading…
Cancel
Save