summaryrefslogtreecommitdiff
path: root/test.h
blob: 6eedc6f2d06fcf9d9598cfbd9e5af001f5f317c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);