mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
io: fix COutStream test
This commit is contained in:
parent
f46121b8fc
commit
748b2c72a3
@ -36,9 +36,9 @@ test "" {
|
||||
const out_file = std.c.fopen(filename, "w") orelse return error.UnableToOpenTestFile;
|
||||
defer {
|
||||
_ = std.c.fclose(out_file);
|
||||
fs.cwd().deleteFileZ(filename) catch {};
|
||||
std.fs.cwd().deleteFileZ(filename) catch {};
|
||||
}
|
||||
|
||||
const out_stream = &io.COutStream.init(out_file).stream;
|
||||
const out_stream = &cOutStream(out_file);
|
||||
try out_stream.print("hi: {}\n", .{@as(i32, 123)});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user