From d786ac8fc49391e4efc69891b135979aa2848701 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sun, 31 May 2026 13:56:43 +0530 Subject: replaced asserts with test failures --- tests/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') 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++; } } -- cgit v1.2.3