test: TEST_INIT macro as a prologue for any unit test

This commit is contained in:
2026-02-05 07:37:36 +00:00
parent 762dabd3e5
commit 3612313e76
7 changed files with 21 additions and 2 deletions

View File

@@ -14,7 +14,9 @@
#define TEST_VERBOSE 0
#endif
#define TEST_INIT() printf("\t[%s]: Running...\n", __func__)
#define TEST_PASSED() printf("\t[%s]: Passed\n", __func__)
#if TEST_VERBOSE
#define TEST(COND, ...) \
do \