-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathminunit.h
18 lines (17 loc) · 945 Bytes
/
minunit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
* taken from https://jera.com/techinfo/jtns/jtn002
*/
/* file: minunit.h */
#define mu_assert(message, test) \
do { \
if (!(test)) \
return message; \
} while (0)
#define mu_run_test(test) \
do { \
char *message = test(); \
tests_run++; \
if (message) \
return message; \
} while (0)
extern int tests_run;