From 0756ad91ff1ba4788f40825c4de101fe8b3a9fa9 Mon Sep 17 00:00:00 2001 From: fdai7514 Date: Mon, 30 Jan 2023 16:13:09 +0100 Subject: [PATCH] refactoring: implement new variables in test_requestLoan.c --- tests/test_requestLoan.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_requestLoan.c b/tests/test_requestLoan.c index 9dd5e66..010f5d6 100644 --- a/tests/test_requestLoan.c +++ b/tests/test_requestLoan.c @@ -14,9 +14,10 @@ void tearDown(void) void test_requestLoan(void) { - int e; - e = allow(); - TEST_ASSERT_EQUAL_INT(1, e); + int actual, expected; //Arrange + expected = 1; + actual = allow(); // Act + TEST_ASSERT_EQUAL_INT(expected, actual); // Assert } #endif // TEST