Sha256: 35129182c1ee272bd497e4c0ad2b028a4af1ebdfac5ef8fc13759e54ac534001
Contents?: true
Size: 1.4 KB
Versions: 2
Compression:
Stored size: 1.4 KB
Contents
/* Taken from http://www.jera.com/techinfo/jtns/jtn002.html */ /* Simple Macros for testing */ #define mu_assert_less(message, a, b) \ do { \ if (a > b) { \ scs_printf("%s: %1.3e > %1.3e\n", message, a, b); \ return message; \ } \ } while (0) #define mu_assert(message, test) \ do { \ if (!(test)) \ return message; \ } while (0) #define mu_run_test(test) \ do { \ const char *message = test(); \ tests_run++; \ if (message) \ return message; \ } while (0)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scs-0.3.1 | vendor/scs/test/minunit.h |
scs-0.3.0 | vendor/scs/test/minunit.h |