From d58372991f46380441e18cc2dccf063198067e2f Mon Sep 17 00:00:00 2001 From: jlamothe Date: Tue, 7 Nov 2023 19:36:54 +0000 Subject: [PATCH] print log before displaying summary --- 9unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9unit.c b/9unit.c index 3471e70..90b2705 100644 --- a/9unit.c +++ b/9unit.c @@ -61,11 +61,11 @@ run_tests(void (*tests)(TestState *)) TestState s; init_TestState(&s); (*tests)(&s); + print_log(&s); printf("Tests run: %d\n", s.run); printf("Tests passed: %d\n", s.passed); printf("Tests failed: %d\n", s.failed); printf("Tests postponed: %d\n", s.postponed); - print_log(&s); clear_log(&s); }