| 1 | #exe { |
| 2 | -Mroot=main.zig |
| 3 | #} |
| 4 | |
| 5 | #write main.zig { |
| 6 | const std = @import("std"); |
| 7 | const io = std.Io.Threaded.global_single_threaded.io(); |
| 8 | pub fn main() !void { |
| 9 | try std.Io.File.stdout().writeStreamingAll(io, "good morning\n"); |
| 10 | } |
| 11 | #} |
| 12 | #update |
| 13 | #check stdout { |
| 14 | good morning |
| 15 | #} |
| 16 | |
| 17 | #write main.zig { |
| 18 | const std = @import("std"); |
| 19 | const io = std.Io.Threaded.global_single_threaded.io(); |
| 20 | pub fn main() !void { |
| 21 | try std.Io.File.stdout().writeStreamingAll(io, "おはようございます\n"); |
| 22 | } |
| 23 | #} |
| 24 | #update "change the string" |
| 25 | #check stdout { |
| 26 | おはようございます |
| 27 | #} |