diff options
Diffstat (limited to 'test.h')
-rw-r--r-- | test.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +void testing_header(const char *); +void testing_comment(const char*); + +void test_int_equals_imp(const char*, int, int); +#define test_int_equals(expression, expected) test_int_equals_imp(#expression, expression, expected) + +void test_void_imp(const char*); +#define test_void(expression) test_void_imp(#expression); (void)expression + +void test_bool_imp(const char *, int, int); +#define test_false(expression) test_bool_imp(#expression, expression, 0) +#define test_true(expression) test_bool_imp(#expression, expression, 1) + +void test_assert(void); +void test_ctype(void); |