diff options
| author | Lewis Gaul <lewis.gaul@gmail.com> | 2022-05-23 23:48:18 +0100 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-07-24 12:08:02 +0300 |
| commit | a08b0fa706f79a506b219d59a0b58a6d5761dcd7 (patch) | |
| tree | abebf10b42d8d892e791dfd5e1fec814687a045a | |
| parent | 7cbd586ace46a8e8cebab660ebca3cfc049305d9 (diff) | |
| download | zig-a08b0fa706f79a506b219d59a0b58a6d5761dcd7.tar.gz zig-a08b0fa706f79a506b219d59a0b58a6d5761dcd7.zip | |
Fix indexing in the test runner's log formatting
| -rw-r--r-- | lib/test_runner.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/test_runner.zig b/lib/test_runner.zig index e3bc7fec86..8a3c1f0ca7 100644 --- 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, + ); } } |
