Skip to content

Commit

Permalink
fix: removed extra "COLOR_REST" on "finalizeTests" function and added…
Browse files Browse the repository at this point in the history
… green and red color for better predict of result.
  • Loading branch information
uesleibros committed May 20, 2024
1 parent 52c6e07 commit 7b8b8dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/tests/test_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ void describe(const char *description) {

void finalizeTests(int testsPassed, int totalTests) {
if (testsPassed < totalTests)
printf("\n%s[TEST RESULTS]: %sPASSED %d of %d tests%s\n", COLOR_RED, COLOR_RESET, testsPassed, totalTests, COLOR_RESET);
printf("\n%s[TEST RESULTS]: %sPASSED %d of %d tests\n", COLOR_RED, COLOR_RESET, testsPassed, totalTests);
else
printf("\n[TEST RESULTS]: PASSED %d of %d tests\n", testsPassed, totalTests);
printf("\n%s[TEST RESULTS]: %sPASSED %d of %d tests\n", COLOR_GREEN, COLOR_RESET, testsPassed, totalTests);
}

int expectTrue(const char *description, int condition) {
Expand Down

0 comments on commit 7b8b8dd

Please sign in to comment.