diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-31 13:56:43 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-31 13:56:43 +0530 |
| commit | d786ac8fc49391e4efc69891b135979aa2848701 (patch) | |
| tree | 011f6ae51da54494495c21a8a1240233a6d3f642 /tests | |
| parent | 8671756d141292d4ec9747ec8de6e9cf3324777d (diff) | |
replaced asserts with test failures
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c index 9333aec..2581a58 100644 --- a/tests/main.c +++ b/tests/main.c @@ -34,7 +34,11 @@ int main() { bool result = tests[i](); clock_gettime(CLOCK_MONOTONIC, &end); - printf(" %s %.2lfs\n", result ? "P" : "F", diff_time(end, begin)); + printf( + " %s %.2lfs\n", + result ? "\x1b[32mP\x1b[0m" : "\x1b[31mF\x1b[0m", + diff_time(end, begin) + ); i++; } } |
