Browse Source

refactoring: change variable names in test_calculatorGetUserInputFactorial.c

remotes/origin/feature/calculator-get-user-input-factorial
fdai7514 2 years ago
parent
commit
7fd2d0e3aa
  1. 12
      tests/test_calculatorGetUserInputFactorial.c

12
tests/test_calculatorGetUserInputFactorial.c

@ -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
Loading…
Cancel
Save