|
@ -4,6 +4,10 @@ |
|
|
|
|
|
|
|
|
#include "calculatorGetUserInputFactorial.c" |
|
|
#include "calculatorGetUserInputFactorial.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_calculatorGetUserInputFactorial(void) |
|
|
void test_calculatorGetUserInputFactorial(void) |
|
|
{ |
|
|
{ |
|
|
int a, e; |
|
|
|
|
|
e = 1; |
|
|
|
|
|
a = allowWhen(); |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(e, a); |
|
|
|
|
|
|
|
|
int actual, expected; //Arrange |
|
|
|
|
|
expected = 1; |
|
|
|
|
|
actual = allowWhen(); //Act |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); //Assert |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |