-
Notifications
You must be signed in to change notification settings - Fork 0
/
minunit.h
22 lines (17 loc) · 958 Bytes
/
minunit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// http: // www.jera.com/techinfo/jtns/jtn002.html
#ifndef MINUNIT_H
#define 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;
#endif