-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
zig test result hides printed output if it's missing a trailing newline #6856
Copy link
Copy link
Open
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
print.zig:
const print = @import("std").debug.print;
test "print" {
print("This prints,", .{});
print("\nand this prints,\n", .{});
print("but this doesn't!", .{});
}
Running zig test print.zig on Windows 7 gives the following command prompt output:
C:\>zig test print.zig
Test [1/1] test "print"... This prints,
and this prints,
All 1 tests passed.
I'd expect the last line to be either one of the following:
but this doesn't!All 1 tests passed.
but this doesn't!
All 1 tests passed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.