diff options
| author | Tobias Simetsreiter <[email protected]> | 2022-11-16 12:36:31 +0100 |
|---|---|---|
| committer | Tobias Simetsreiter <[email protected]> | 2022-11-16 12:36:31 +0100 |
| commit | 980a278cccd342510f5d8513f1e05b15dcfc84a7 (patch) | |
| tree | 3192a316e74df6ebc0bc3e49dcb4ebab974c9592 /build.zig | |
| parent | 5a920ac48c54e867fe0796e4d3b450ce9d2698ba (diff) | |
| download | ziglings-980a278cccd342510f5d8513f1e05b15dcfc84a7.tar.xz ziglings-980a278cccd342510f5d8513f1e05b15dcfc84a7.zip | |
add check for trailing output characters
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -683,7 +683,7 @@ const ZiglingStep = struct { } // 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( \\ \\{s}----------- Expected this output -----------{s} |
