authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-04-02 05:51:42+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-04-02 05:58:29+01:00
logdd3f01eadfff28651847d56b2c52c98d6d73d8c9
tree23757f805fbf10b4830a03b1117a349fb6cc6acf
parentd8ac37fcc8d46adab6131db9c1a35131919f002b
signaturelock-open Commit is signed but in an unrecognized format.

incremental: add test for ZON file without result type


1 files changed, 24 insertions(+), 0 deletions(-)

test/incremental/change_zon_file_no_result_type created+24
...@@ -0,0 +1,24 @@
1#target=x86_64-linux-selfhosted
2#target=x86_64-linux-cbe
3#target=x86_64-windows-cbe
4//#target=wasm32-wasi-selfhosted
5#update=initial version
6#file=main.zig
7const std = @import("std");
8pub fn main() !void {
9 try std.io.getStdOut().writeAll(@import("foo.zon").message);
10}
11#file=foo.zon
12.{
13 .message = "Hello, World!\n",
14 .a_number = 0,
15}
16#expect_stdout="Hello, World!\n"
17
18#update=change ZON file
19#file=foo.zon
20.{
21 .message = "Hello again, World!\n",
22 .b_number = 0,
23}
24#expect_stdout="Hello again, World!\n"