diff options
author | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-06 11:50:42 +0200 |
---|---|---|
committer | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-06 11:50:42 +0200 |
commit | be43e2d010b65e0fb16f96cde3161d38fe535c31 (patch) | |
tree | 36c91c3a450c0076c4ff8e948f68af8c0dd0bc95 /test/tests.zig | |
parent | 1c73ad29a7c76ffd937911906d5367e4a78fb161 (diff) |
build: make `Exercise.hint` optional
Use an optional type, instead of an empty string, since it is more
idiomatic.
Diffstat (limited to 'test/tests.zig')
-rw-r--r-- | test/tests.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig index 0fd3286..e00ece9 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -175,7 +175,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step { const cmd = b.addSystemCommand(&.{ b.zig_exe, "build", "-Dn=1" }); cmd.setName("zig build -Dn=1"); cmd.expectExitCode(1); - expectStdErrMatch(cmd, exercises[0].hint); + expectStdErrMatch(cmd, exercises[0].hint orelse ""); cmd.step.dependOn(case_step); |