9 lines
373 B
C
9 lines
373 B
C
|
#ifndef MINITEST_H
|
||
|
#define MINITEST_H
|
||
|
|
||
|
#define mu_in_delta(a, b, delta) (((a) >= ((b) - (delta))) && ((a) <= ((b) + (delta))))
|
||
|
#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)
|
||
|
|
||
|
#endif /* MINITEST_H */
|