update all incremental tests to new std API

they're still not passing on windows for some reason though
This commit is contained in:
Andrew Kelley
2025-12-19 20:40:24 -08:00
parent 77d2ad8c92
commit debf307594
26 changed files with 155 additions and 80 deletions
+6 -3
View File
@@ -8,9 +8,10 @@ pub fn main() !void {
try foo();
}
fn foo() !void {
try std.Io.File.stdout().writeAll("Hello, World!\n");
try std.Io.File.stdout().writeStreamingAll(io, "Hello, World!\n");
}
const std = @import("std");
const io = std.Io.Threaded.global_single_threaded.ioBasic();
#expect_stdout="Hello, World!\n"
#update=make function inline
@@ -19,9 +20,10 @@ pub fn main() !void {
try foo();
}
inline fn foo() !void {
try std.Io.File.stdout().writeAll("Hello, World!\n");
try std.Io.File.stdout().writeStreamingAll(io, "Hello, World!\n");
}
const std = @import("std");
const io = std.Io.Threaded.global_single_threaded.ioBasic();
#expect_stdout="Hello, World!\n"
#update=change string
@@ -30,7 +32,8 @@ pub fn main() !void {
try foo();
}
inline fn foo() !void {
try std.Io.File.stdout().writeAll("Hello, `inline` World!\n");
try std.Io.File.stdout().writeStreamingAll(io, "Hello, `inline` World!\n");
}
const std = @import("std");
const io = std.Io.Threaded.global_single_threaded.ioBasic();
#expect_stdout="Hello, `inline` World!\n"