add check for trailing output characters

pull/2/head
Tobias Simetsreiter 2 years ago
parent 5a920ac48c
commit 980a278ccc

@ -683,7 +683,7 @@ const ZiglingStep = struct {
} }
// validate the output // validate the output
if (std.mem.indexOf(u8, output, self.exercise.output) == null) { if (std.mem.indexOf(u8, output, self.exercise.output) == null or output.len != self.exercise.output.len) {
print( print(
\\ \\
\\{s}----------- Expected this output -----------{s} \\{s}----------- Expected this output -----------{s}

Loading…
Cancel
Save