From dd3f01eadfff28651847d56b2c52c98d6d73d8c9 Mon Sep 17 00:00:00 2001 From: mlugg Date: Wed, 2 Apr 2025 05:51:42 +0100 Subject: [PATCH] incremental: add test for ZON file without result type --- .../change_zon_file_no_result_type | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/incremental/change_zon_file_no_result_type diff --git a/test/incremental/change_zon_file_no_result_type b/test/incremental/change_zon_file_no_result_type new file mode 100644 index 0000000000..84f4a69bcf --- /dev/null +++ b/test/incremental/change_zon_file_no_result_type @@ -0,0 +1,24 @@ +#target=x86_64-linux-selfhosted +#target=x86_64-linux-cbe +#target=x86_64-windows-cbe +//#target=wasm32-wasi-selfhosted +#update=initial version +#file=main.zig +const std = @import("std"); +pub fn main() !void { + try std.io.getStdOut().writeAll(@import("foo.zon").message); +} +#file=foo.zon +.{ + .message = "Hello, World!\n", + .a_number = 0, +} +#expect_stdout="Hello, World!\n" + +#update=change ZON file +#file=foo.zon +.{ + .message = "Hello again, World!\n", + .b_number = 0, +} +#expect_stdout="Hello again, World!\n"