1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-26 02:06:16 +02:00
ziglings/patches
Dave Gauer 6ccd55729e Added testing ability
For the full details, see patches/README.md :-)
2021-02-14 18:36:09 -05:00
..
01_hello.patch Added testing ability 2021-02-14 18:36:09 -05:00
02_std.patch Added testing ability 2021-02-14 18:36:09 -05:00
03_assignment.patch Added testing ability 2021-02-14 18:36:09 -05:00
04_arrays.patch Added testing ability 2021-02-14 18:36:09 -05:00
05_arrays2.patch Added testing ability 2021-02-14 18:36:09 -05:00
06_strings.patch Added testing ability 2021-02-14 18:36:09 -05:00
07_strings2.patch Added testing ability 2021-02-14 18:36:09 -05:00
08_quiz.patch Added testing ability 2021-02-14 18:36:09 -05:00
09_if.patch Added testing ability 2021-02-14 18:36:09 -05:00
10_if2.patch Added testing ability 2021-02-14 18:36:09 -05:00
11_while.patch Added testing ability 2021-02-14 18:36:09 -05:00
12_while2.patch Added testing ability 2021-02-14 18:36:09 -05:00
13_while3.patch Added testing ability 2021-02-14 18:36:09 -05:00
14_while4.patch Added testing ability 2021-02-14 18:36:09 -05:00
15_for.patch Added testing ability 2021-02-14 18:36:09 -05:00
16_for2.patch Added testing ability 2021-02-14 18:36:09 -05:00
17_quiz2.patch Added testing ability 2021-02-14 18:36:09 -05:00
18_functions.patch Added testing ability 2021-02-14 18:36:09 -05:00
19_functions2.patch Added testing ability 2021-02-14 18:36:09 -05:00
20_quiz3.patch Added testing ability 2021-02-14 18:36:09 -05:00
21_errors.patch Added testing ability 2021-02-14 18:36:09 -05:00
22_errors2.patch Added testing ability 2021-02-14 18:36:09 -05:00
23_errors3.patch Added testing ability 2021-02-14 18:36:09 -05:00
24_errors4.patch Added testing ability 2021-02-14 18:36:09 -05:00
25_errors5.patch Added testing ability 2021-02-14 18:36:09 -05:00
26_hello2.patch Added testing ability 2021-02-14 18:36:09 -05:00
27_defer.patch Added testing ability 2021-02-14 18:36:09 -05:00
28_defer2.patch Added testing ability 2021-02-14 18:36:09 -05:00
29_errdefer.patch Added testing ability 2021-02-14 18:36:09 -05:00
30_switch.patch Added testing ability 2021-02-14 18:36:09 -05:00
31_switch2.patch Added testing ability 2021-02-14 18:36:09 -05:00
32_unreachable.patch Added testing ability 2021-02-14 18:36:09 -05:00
33_iferror.patch Added testing ability 2021-02-14 18:36:09 -05:00
34_quiz4.patch Added testing ability 2021-02-14 18:36:09 -05:00
35_enums.patch Added testing ability 2021-02-14 18:36:09 -05:00
36_enums2.patch Added testing ability 2021-02-14 18:36:09 -05:00
37_structs.patch Added testing ability 2021-02-14 18:36:09 -05:00
38_structs2.patch Added testing ability 2021-02-14 18:36:09 -05:00
39_pointers.patch Added testing ability 2021-02-14 18:36:09 -05:00
40_pointers2.patch Added testing ability 2021-02-14 18:36:09 -05:00
41_pointers3.patch Added testing ability 2021-02-14 18:36:09 -05:00
42_pointers4.patch Added testing ability 2021-02-14 18:36:09 -05:00
43_pointers5.patch Added testing ability 2021-02-14 18:36:09 -05:00
44_quiz5.patch Added testing ability 2021-02-14 18:36:09 -05:00
45_optionals.patch Added ex 45 optionals 2021-02-14 10:49:09 -05:00
README.md Added testing ability 2021-02-14 18:36:09 -05:00
eowyn.sh Added testing ability 2021-02-14 18:36:09 -05:00
gollum.sh Added testing ability 2021-02-14 18:36:09 -05: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.

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