Rename testing macros

This commit is contained in:
Abdelrahman Said
2024-06-03 07:58:24 +01:00
parent 75bbb82058
commit 6499dd7be9
4 changed files with 15 additions and 14 deletions

View File

@@ -21,7 +21,7 @@ void run_tests(TestFunc *func1, ...) {
TestFuncResult result = func();
print_test_result(result);
if (!result.success) {
if (!result.passed) {
exit(EXIT_FAILURE);
}
}
@@ -35,7 +35,7 @@ internal void print_test_result(TestFuncResult result) {
const char *colour;
const char *result_text;
if (result.success) {
if (result.passed) {
colour = TERM_COLOUR_FG_BR_GREEN;
result_text = "PASSED";
} else {