Skip to content

Commit ae722d6

Browse files
committed
Fix indexing in the test runner's log formatting
1 parent 8171972 commit ae722d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/test_runner.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ pub fn log(
127127
log_err_count += 1;
128128
}
129129
if (@enumToInt(message_level) <= @enumToInt(std.testing.log_level)) {
130-
std.debug.print("[{s}] ({s}): " ++ format ++ "\n", .{ @tagName(scope), @tagName(message_level) } ++ args);
130+
std.debug.print(
131+
"[" ++ @tagName(scope) ++ "] (" ++ @tagName(message_level) ++ "): " ++ format ++ "\n",
132+
args,
133+
);
131134
}
132135
}
133136

0 commit comments

Comments
 (0)