077a779f3d
It was confusing to see tail... = undefined in the struct definition and then if (tail == null) later in the exercise - it appears that the mismatch would be the issue - but that's distracting from the real issue: making the value optional! Changing the initial value to null is still correct, but won't distract. The only worry now is that the user will remember the undefined definition from the previous exercise and wonder if that has to be that way...but you can't win them all! |
||
---|---|---|
.. | ||
patches | ||
eowyn.sh | ||
gollum.sh | ||
README.md |
No Peeking! :-)
Welcome to the ziglings/patches directory. This is how ziglings is tested.
The patches fix the broken exercises so that they work again, which means the answers are here, so no peeking!
Éowyn
A Bash shell script named eowyn.sh
dwells here. She heals the little broken
programs and places them in a healed
directory, which is NOT committed to the
repo.
$ ./eowyn.sh
(If you invoke her from elsewhere, she'll come here to ply her trade.)
The build.zig
build script at the heart of Ziglings has a top-secret option
which tells it to test from the patches/healed/
dir rather than exercises/
:
$ zig build -Dhealed [step]
Éowyn tests all healed programs using this secret option.
Gollum
Another Bash shell script named gollum.sh
may also be found. He snatches the
original answers and stows them in his secret answers stash. If you leave him
alone, he'll leave you alone.