From 3cfe668e7628dbcb06ea3c3b54261e202d148300 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Sun, 7 Aug 2022 00:52:37 +0400 Subject: Fix error reporting format --- source/kit_test/run_tests.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/kit_test/run_tests.c') diff --git a/source/kit_test/run_tests.c b/source/kit_test/run_tests.c index c08f946..333aa58 100644 --- a/source/kit_test/run_tests.c +++ b/source/kit_test/run_tests.c @@ -7,16 +7,16 @@ struct kit_tests_list kit_tests_list = { 0 }; static void report(int i, char const *file, int line, int ok) { if (i >= KIT_TESTS_SIZE_LIMIT) { - printf("Kit Test error: Too many tests!"); + printf("\nKit Test error: Too many tests!\n"); return; } int const n = kit_tests_list.tests[i].assertions++; if (n >= KIT_TEST_ASSERTIONS_LIMIT) { - printf( - "Kit Test error: Too many test assertions for test \"%s\"!", - kit_tests_list.tests[i].test_name); + printf("\nKit Test error: Too many test assertions for test " + "\"%s\"!\n", + kit_tests_list.tests[i].test_name); return; } -- cgit v1.2.3