|
@ -4,6 +4,10 @@ |
|
|
|
|
|
|
|
|
#include "calculatorGetUserInput.c" |
|
|
#include "calculatorGetUserInput.c" |
|
|
|
|
|
|
|
|
|
|
|
// Note: |
|
|
|
|
|
/* This Function may or may not be implemented in actual program, even if it is merged to the main branch. |
|
|
|
|
|
If it is temporarily not included in the main Program, then this has a role in future Development of the Project */ |
|
|
|
|
|
|
|
|
void setUp(void) |
|
|
void setUp(void) |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
@ -14,10 +18,10 @@ void tearDown(void) |
|
|
|
|
|
|
|
|
void test_calculatorGetUserInput_NeedToImplement(void) |
|
|
void test_calculatorGetUserInput_NeedToImplement(void) |
|
|
{ |
|
|
{ |
|
|
int a, e; |
|
|
|
|
|
e = 1; |
|
|
|
|
|
a = allowOnly(); |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(e, a); |
|
|
|
|
|
|
|
|
int actual, expected; //Arrange |
|
|
|
|
|
expected = 1; |
|
|
|
|
|
actual = allowOnly(); //Act |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual);//Assert |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |