From 7fd2d0e3aa950e130732752611d02b9994d04b19 Mon Sep 17 00:00:00 2001 From: fdai7514 Date: Tue, 7 Feb 2023 16:50:14 +0100 Subject: [PATCH] refactoring: change variable names in test_calculatorGetUserInputFactorial.c --- tests/test_calculatorGetUserInputFactorial.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_calculatorGetUserInputFactorial.c b/tests/test_calculatorGetUserInputFactorial.c index 5a42adb..b9a2e91 100644 --- a/tests/test_calculatorGetUserInputFactorial.c +++ b/tests/test_calculatorGetUserInputFactorial.c @@ -4,6 +4,10 @@ #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) { } @@ -14,10 +18,10 @@ void tearDown(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