2021-02-14 18:36:09 -05:00
|
|
|
# No Peeking! :-)
|
2021-02-14 10:49:09 -05:00
|
|
|
|
2021-02-14 18:36:09 -05:00
|
|
|
Welcome to the ziglings/patches directory. This is how ziglings is tested.
|
2021-02-14 10:49:09 -05:00
|
|
|
|
2021-02-14 18:36:09 -05:00
|
|
|
The patches fix the broken exercises so that they work again, which means the
|
|
|
|
answers are here, so no peeking!
|
2021-02-14 10:49:09 -05:00
|
|
|
|
2021-02-14 18:36:09 -05:00
|
|
|
## Éowyn
|
|
|
|
|
|
|
|
A Bash shell script named `eowyn.sh` dwells here. She heals the little broken
|
2021-02-14 20:26:57 -05:00
|
|
|
programs and places them in a `healed` directory, which is NOT committed to the
|
2021-02-14 18:36:09 -05:00
|
|
|
repo.
|
|
|
|
|
|
|
|
```bash
|
2021-03-12 20:43:21 -05:00
|
|
|
$ patches/eowyn.sh
|
2021-02-14 18:36:09 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
(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/`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ 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.
|