summaryrefslogtreecommitdiff
path: root/test.h
blob: 4f763b82fa2d86a044864f5b23f2ea192a1e1a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void testing_header(const char *);
void testing_comment(const char*);
void testing_end(void);

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 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_string_imp(const char*, const char*, const char*);
#define test_string(expression, string) test_string_imp(#expression, expression, string)

void test_assert(void);
void test_ctype(void);
void test_locale(void);