diff options
Diffstat (limited to 'test.c')
| -rw-r--r-- | test.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -10,14 +10,14 @@ static int tests_failed = 0; env *global_env = NULL; -#define ASSERT(cond, msg) do { \ - tests_run++; \ - if (!(cond)) { \ - tests_failed++; \ +#define ASSERT(cond, msg) do { \ + tests_run++; \ + if (!(cond)) { \ + tests_failed++; \ printf("FAIL: %s\n", msg); \ - } else { \ + } else { \ printf("PASS: %s\n", msg); \ - } \ + } \ } while (0) void test_make_int() { |
