From ad92a53fc2eb1a8fbb65c6d4e9cc8451464d2fb0 Mon Sep 17 00:00:00 2001 From: drunkendog Date: Wed, 13 Sep 2023 15:01:43 +0100 Subject: [PATCH] Update run-tests.py --- run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.py b/run-tests.py index f6000e6..f92261c 100644 --- a/run-tests.py +++ b/run-tests.py @@ -31,6 +31,6 @@ for file_name in glob.glob("*.c", recursive=False): test_passed_int = int(return_data == x_split[1].rstrip()) total_tests += 1 passed_tests += test_passed_int - print(f"\u001b[{31 + test_passed_int}m{return_data}\u001b[0m", x_split[1]) + print(f"({x_split[0]})", x_split[1], f"\u001b[{31 + test_passed_int}m{return_data}\u001b[0m") print(f"\u001b[32m{passed_tests} tests passed\u001b[0m, \u001b[{31 - 31*int(total_tests == passed_tests)}m{total_tests - passed_tests} tests failed\u001b[0m") os.remove("a.out")