1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-11 04:36:04 +02:00
ziglings/patches
Manlio Perillo c76ec7ecf6 eowyn.sh: set the -e option
Currently, `zig fmt` exit status is ignored, making it useless.
Ensure that the script terminates early if there is an error.

Print a message to stdout before executing `zig fmt`, in order to make
the possible error more visible.
2023-04-25 14:52:05 +02:00
..
patches Ex 099 format instructions to 65 columns, wording, examples 2023-04-23 18:54:43 -04:00
README.md Update README.md 2021-03-12 20:43:21 -05:00
eowyn.sh eowyn.sh: set the -e option 2023-04-25 14:52:05 +02:00
gollum.sh Correct conventional Zig reference vs value passing re #89 2022-07-31 15:58:24 -04:00

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.

$ patches/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.