Browse Source

Commited Unit Test calculate Factorial

remotes/origin/feature
Leon Wolf 11 months ago
parent
commit
324612a30d
  1. 17
      test/test_calculateFactorial .c

17
test/test_calculateFactorial .c

@ -0,0 +1,17 @@
#include "../src/calculateFactorial.h"
#include "unity.h"
#include "limits.h"
void setUp(void) {
// set stuff up here
}
void tearDown(void) {
// clean stuff up here
}
void test_calculateFactorial_calculateFactorialofanumber(void) {
int expectedResult = 120;
int result;
result = calculateFactorial_integer(5);
TEST_ASSERT_EQUAL_INT(expectedResult, result);
}
Loading…
Cancel
Save