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.

31 lines
641 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "../src/displayMenuCalculator.c"
  4. #include "../src/calculatorAdd.c"
  5. #include "../src/calculatorDivide.c"
  6. #include "../src/calculatorFactorial.c"
  7. #include "../src/calculatorGetUserInput.c"
  8. #include "../src/calculatorGetUserInputFactorial.c"
  9. #include "../src/calculatorMultiply.c"
  10. #include "../src/calculatorSubtract.c"
  11. void setUp(void)
  12. {
  13. }
  14. void tearDown(void)
  15. {
  16. }
  17. void test_displayMenuCalculator(void)
  18. {
  19. int expected, actual; //Arrange
  20. expected = 1;
  21. actual = check(); //Act
  22. TEST_ASSERT_EQUAL_INT(expected, actual);//Assert
  23. }
  24. #endif // TEST