c-multihash/test/minunit.h

6 lines
251 B
C
Raw Normal View History

2016-07-25 15:18:34 +00:00
/* vim: set ts=8 sw=8 noexpandtab: */
#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;