const std = @import("std");
pub fn main() !void {
std.debug.print("Hello World!\n", .{});
}
test "expect this to fail" {
std.log.debug("\ndebug Hello World!\n", .{});
std.debug.print("\nHello World!\n", .{});
}
root@ser300462488588:~/test# zig test src/main.zig
Test [1/1] test.expect this to fail...
Hello World!
All 1 tests passed.
In general, how to print information in unit tests. Can you tell us about it? Thanks for the help!