Add helper macro for running test functions

This commit is contained in:
2024-06-02 23:55:41 +01:00
parent 7fb13f2439
commit 75bbb82058
2 changed files with 5 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ extern "C" {
#endif // __cplusplus
#define TEST_RESULT(BOOL) ((TestFuncResult){.name = __func__, .success = BOOL})
#define RUN_TEST_FUNCS(...) run_tests(__VA_ARGS__, NULL)
typedef struct test_func_result TestFuncResult;
struct test_func_result {