| author | |
| committer | |
| log | 1dac9e71b525cb14eb358eaf0bc45b1554f5bf55 |
| tree | 483d91afbb2779360ee49c400c69c65a20d35cf9 |
| parent | 8252c8b9d698ca671413ad4e23c5228dcf505632 |
1 files changed, 4 insertions(+), 3 deletions(-)
lib/std/testing.zig+4-3| ... | ... | @@ -320,10 +320,11 @@ fn printWithVisibleNewlines(source: []const u8) void { |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | fn printLine(line: []const u8) void { |
| 323 | switch (line[line.len - 1]) { | |
| 323 | if (line.len != 0) switch (line[line.len - 1]) { | |
| 324 | 324 | ' ', '\t' => warn("{}⏎\n", .{line}), // Carriage return symbol, |
| 325 | else => warn("{}\n", .{line}), | |
| 326 | } | |
| 325 | else => {}, | |
| 326 | }; | |
| 327 | warn("{}\n", .{line}); | |
| 327 | 328 | } |
| 328 | 329 | |
| 329 | 330 | test "" { |