mirror of
https://github.com/recp/cglm.git
synced 2026-11-18 10:17:13 -06:00
test: improve runner output and add assert helper for inline functions
This commit is contained in:
1 parent
80c2b3712d
commit
32e5784564
10 files changed
+89
-69
No files matched your search
@@ -70,6 +70,7 @@ typedef struct test_entry_t {
|
||||
|
||||
#define ASSERT_CHOOSER(...) ASSERT_ARG3(__VA_ARGS__, ASSERT_ARG2, ASSERT_ARG1)
|
||||
#define ASSERT(...) do { ASSERT_CHOOSER(__VA_ARGS__)(__VA_ARGS__) } while(0);
|
||||
#define ASSERTIFY(expr) ASSERT((expr).status == 1, (expr).msg)
|
||||
|
||||
#define TEST_OK 1
|
||||
#define TEST_SUCCESS return (test_status_t){NULL, TEST_OK};
|
||||
|
||||
Reference in new issue
Block a user