Files
erluv/c_src/minunit.h
niamtokik 54ad83d1ee update
2020-06-18 06:06:06 +00:00

10 lines
387 B
C

/* copyright (c) 2020 Mathieu Kerjouan <contact@steepath.eu>
*
* file: minunit.h
* from http://www.jera.com/techinfo/jtns/jtn002.html
*/
#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;