From 9be81ef43c8cfabe72fba16651dbfe62ed0f1123 Mon Sep 17 00:00:00 2001 From: Christian C Date: Fri, 7 Mar 2025 23:48:17 -0800 Subject: Testing suite --- src/test/test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/test/test.c') diff --git a/src/test/test.c b/src/test/test.c index 95b4154..2f42e17 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -1,10 +1,15 @@ #include +#define _META_TEST_RESULT(name,result) if (result) { fprintf(stderr, "%s: \x1b[92mPASS\x1b[0m\n", name);} else { fprintf(stderr, "%s: \x1b[91mFAIL\x1b[0m\n", name);} + int main() { bool_t all_success = TRUE; + bool_t test_success; // lib/color.c Test - all_success &= TEST_lib_color(); + test_success = TEST_lib_color(); + all_success &= test_success; + _META_TEST_RESULT("LIB/COLOR", test_success) if (all_success == TRUE) { return 0; -- cgit v1.2.1