| ... | @@ -36,9 +36,9 @@ test "" { | ... | @@ -36,9 +36,9 @@ test "" { |
| 36 | const out_file = std.c.fopen(filename, "w") orelse return error.UnableToOpenTestFile; | 36 | const out_file = std.c.fopen(filename, "w") orelse return error.UnableToOpenTestFile; |
| 37 | defer { | 37 | defer { |
| 38 | _ = std.c.fclose(out_file); | 38 | _ = std.c.fclose(out_file); |
| 39 | fs.cwd().deleteFileZ(filename) catch {}; | 39 | std.fs.cwd().deleteFileZ(filename) catch {}; |
| 40 | } | 40 | } |
| 41 | | 41 | |
| 42 | const out_stream = &io.COutStream.init(out_file).stream; | 42 | const out_stream = &cOutStream(out_file); |
| 43 | try out_stream.print("hi: {}\n", .{@as(i32, 123)}); | 43 | try out_stream.print("hi: {}\n", .{@as(i32, 123)}); |
| 44 | } | 44 | } |