build: make Exercise.hint optional
Use an optional type, instead of an empty string, since it is more idiomatic.
This commit is contained in:
parent
e537873abc
commit
4001168d2b
2 changed files with 6 additions and 12 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue