mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-02 00:13:30 +02:00
build: make Exercise.hint optional
Use an optional type, instead of an empty string, since it is more idiomatic.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user