You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
385 B

  1. #include "../src/calculateFactorial.h"
  2. #include "unity.h"
  3. #include "limits.h"
  4. void setUp(void) {
  5. // set stuff up here
  6. }
  7. void tearDown(void) {
  8. // clean stuff up here
  9. }
  10. void test_calculateFactorial_calculateFactorialofanumber(void) {
  11. int expectedResult = 120;
  12. int result;
  13. result = calculateFactorial_integer(5);
  14. TEST_ASSERT_EQUAL_INT(expectedResult, result);
  15. }