diff options
| author | Manlio Perillo <[email protected]> | 2023-05-06 11:50:42 +0200 |
|---|---|---|
| committer | Manlio Perillo <[email protected]> | 2023-05-06 11:50:42 +0200 |
| commit | be43e2d010b65e0fb16f96cde3161d38fe535c31 (patch) | |
| tree | 36c91c3a450c0076c4ff8e948f68af8c0dd0bc95 /test | |
| parent | 1c73ad29a7c76ffd937911906d5367e4a78fb161 (diff) | |
| download | ziglings-be43e2d010b65e0fb16f96cde3161d38fe535c31.tar.xz ziglings-be43e2d010b65e0fb16f96cde3161d38fe535c31.zip | |
build: make `Exercise.hint` optional
Use an optional type, instead of an empty string, since it is more
idiomatic.
Diffstat (limited to 'test')
| -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); |
