From a18cea2fef7aa1545c9a984b60919541b26a6f84 Mon Sep 17 00:00:00 2001 From: Christian C Date: Tue, 1 Apr 2025 17:38:32 -0700 Subject: Clang Format --- include/test/__meta__.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'include/test/__meta__.h') diff --git a/include/test/__meta__.h b/include/test/__meta__.h index 17e0b99..f0c10b4 100644 --- a/include/test/__meta__.h +++ b/include/test/__meta__.h @@ -2,21 +2,29 @@ #define INC_TEST___META___H #include -#include #include +#include #define TestCount_t uint16_t #ifdef TEST_SHOW_PASS -#define _TEST_PASS(s,sub,n) fprintf(stderr, "(%4X) \x1b[92mPASS\x1b[0m %s/%s\n", ++n, s, sub) +#define _TEST_PASS(s, sub, n) \ + fprintf(stderr, "(%4X) \x1b[92mPASS\x1b[0m %s/%s\n", ++n, s, sub) #else -#define _TEST_PASS(s,sub,n) ++n +#define _TEST_PASS(s, sub, n) ++n #endif -#define _TEST_FAIL(s,sub,n) fprintf(stderr, "(%4X) \x1b[91mFAIL\x1b[0m %s/%s\n", ++n, s, sub) +#define _TEST_FAIL(s, sub, n) \ + fprintf(stderr, "(%4X) \x1b[91mFAIL\x1b[0m %s/%s\n", ++n, s, sub) #ifndef _TEST_RESULT -#define _TEST_RESULT(main_string,subtest_string,result,n,n_success) if (!result) {_TEST_FAIL(main_string,subtest_string, n);} else {_TEST_PASS(main_string,subtest_string,n);n_success++;} +#define _TEST_RESULT(main_string, subtest_string, result, n, n_success) \ + if (!result) { \ + _TEST_FAIL(main_string, subtest_string, n); \ + } else { \ + _TEST_PASS(main_string, subtest_string, n); \ + n_success++; \ + } #endif #endif -- cgit v1.2.1