mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
update all incremental tests to new std API
they're still not passing on windows for some reason though
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user