diff options
author | sanine <sanine.not@pm.me> | 2021-12-21 20:58:51 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-12-21 20:58:51 -0600 |
commit | 1e3ca08048542a29d04ecc2c1dbc0e5ba8421c27 (patch) | |
tree | 95e5864e42c2407bad18fc43818119e60c123f85 /lily-test.h | |
parent | b712a7ac4c6a7a8bb1d81d0adad8f98084b4d2fe (diff) |
strip things down in preparation for refactor
Diffstat (limited to 'lily-test.h')
-rw-r--r-- | lily-test.h | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/lily-test.h b/lily-test.h index 9f166b1..a1e63e5 100644 --- a/lily-test.h +++ b/lily-test.h @@ -1,32 +1,6 @@ #ifndef LILY_TEST_H #define LILY_TEST_H -#define lily_test const char * - -struct lily_test_data_t { - int tests_run; - int tests_failed; -}; - -#define LILY_INIT() \ - struct lily_test_data_t lily_test_data = { 0, 0 }; - - -// helper macros to turn numerical constants into strings -#define STR_IMPL(x) #x -#define STR(X) STR_IMPL(x) - - -// assertion macros -#define lily_indent " " -#define lily_assert_msg(statement, message) \ - do { \ - if (!(statement)) \ - return "" message \ - "\n" lily_indent " [" __FILE__ ":" STR(__LINE__) "]"; \ - } while(0) - -#define lily_assert_equal(a, b) lily_assert_msg((a) == (b), "'" #a "' is not equal to '" #b "'") - +#define LILY_FILENAME __FILE__ #endif |