This repository has been archived on 2015-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
stream/c/minunit.h
2015-04-30 17:08:08 +00:00

11 lines
425 B
C

/*
* From http://www.jera.com/techinfo/jtns/jtn002.html
*
* You may use the code in this tech note for any purpose, with the
* understanding that it comes with NO WARRANTY.
*/
#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;