zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a08b0fa706f79a506b219d59a0b58a6d5761dcd7 (tree)
parent 7cbd586ace46a8e8cebab660ebca3cfc049305d9
Author: Lewis Gaul <lewis.gaul@gmail.com>
Date:   Mon, 23 May 2022 23:48:18 +0100

Fix indexing in the test runner's log formatting

Diffstat:
Mlib/test_runner.zig | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/test_runner.zig b/lib/test_runner.zig @@ -124,7 +124,10 @@ pub fn log( log_err_count += 1; } if (@enumToInt(message_level) <= @enumToInt(std.testing.log_level)) { - std.debug.print("[{s}] ({s}): " ++ format ++ "\n", .{ @tagName(scope), @tagName(message_level) } ++ args); + std.debug.print( + "[" ++ @tagName(scope) ++ "] (" ++ @tagName(message_level) ++ "): " ++ format ++ "\n", + args, + ); } }