From 851ec4e29d18bf7ae33096365ef81ed981396db6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 25 Feb 2025 01:05:58 -0500 Subject: [PATCH] Fix non-colorized doctest output newlines --- stdlib/stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c index 5427599..c97dbfa 100644 --- a/stdlib/stdlib.c +++ b/stdlib/stdlib.c @@ -514,7 +514,7 @@ public void end_test(const void *expr, const TypeInfo_t *type, const char *expec fprintf(stderr, USE_COLOR ? "\n\x1b[31;7m ==================== TEST FAILED ==================== \x1b[0;1m\n\nExpected: \x1b[1;32m%s\x1b[0m\n\x1b[1m But got:\x1b[m %k\n\n" - : "\n==================== TEST FAILED ====================\nExpected: %s\n\n But got: %k\n\n", + : "\n==================== TEST FAILED ====================\n\nExpected: %s\n But got: %k\n\n", expected, &expr_text); print_stack_trace(stderr, 2, 4);