| 1 | #exe { |
| 2 | -Mroot=main.zig |
| 3 | #} |
| 4 | |
| 5 | #write main.zig { |
| 6 | const std = @import("std"); |
| 7 | pub fn main() !void { |
| 8 | try std.Io.File.stdout().writeStreamingAll(io, "foo\n"); |
| 9 | } |
| 10 | const io = std.Io.Threaded.global_single_threaded.io(); |
| 11 | #} |
| 12 | #update |
| 13 | #check stdout { |
| 14 | foo |
| 15 | #} |
| 16 | |
| 17 | #write main.zig { |
| 18 | const std = @import("std"); |
| 19 | |
| 20 | pub fn main() !void { |
| 21 | try std.Io.File.stdout().writeStreamingAll(io, "foo\n"); |
| 22 | } |
| 23 | const io = std.Io.Threaded.global_single_threaded.io(); |
| 24 | #} |
| 25 | #update "change line number" |
| 26 | #check stdout { |
| 27 | foo |
| 28 | #} |