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
31 lines
641 B
#ifdef TEST
|
|
|
|
#include "unity.h"
|
|
|
|
#include "../src/displayMenuCalculator.c"
|
|
#include "../src/calculatorAdd.c"
|
|
#include "../src/calculatorDivide.c"
|
|
#include "../src/calculatorFactorial.c"
|
|
#include "../src/calculatorGetUserInput.c"
|
|
#include "../src/calculatorGetUserInputFactorial.c"
|
|
#include "../src/calculatorMultiply.c"
|
|
#include "../src/calculatorSubtract.c"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_displayMenuCalculator(void)
|
|
{
|
|
int expected, actual; //Arrange
|
|
expected = 1;
|
|
actual = check(); //Act
|
|
TEST_ASSERT_EQUAL_INT(expected, actual);//Assert
|
|
}
|
|
|
|
|
|
#endif // TEST
|