mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-27 01:46:29 +00:00
add check for trailing output characters
This commit is contained in:
parent
5a920ac48c
commit
980a278ccc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue