Skip to content

Commit 18aa4f5

Browse files
LewisGaulVexu
authored andcommitted
Fix indexing in the test runner's log formatting
1 parent 6b9f609 commit 18aa4f5

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
@@ -124,7 +124,10 @@ pub fn log(
124124
log_err_count += 1;
125125
}
126126
if (@enumToInt(message_level) <= @enumToInt(std.testing.log_level)) {
127-
std.debug.print("[{s}] ({s}): " ++ format ++ "\n", .{ @tagName(scope), @tagName(message_level) } ++ args);
127+
std.debug.print(
128+
"[" ++ @tagName(scope) ++ "] (" ++ @tagName(message_level) ++ "): " ++ format ++ "\n",
129+
args,
130+
);
128131
}
129132
}
130133

0 commit comments

Comments
 (0)