You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dave Gauer 03a09639c6 Added testing ability
For the full details, see patches/README.md :-)
4 years ago
..
01_hello.patch Added testing ability 4 years ago
02_std.patch Added testing ability 4 years ago
03_assignment.patch Added testing ability 4 years ago
04_arrays.patch Added testing ability 4 years ago
05_arrays2.patch Added testing ability 4 years ago
06_strings.patch Added testing ability 4 years ago
07_strings2.patch Added testing ability 4 years ago
08_quiz.patch Added testing ability 4 years ago
09_if.patch Added testing ability 4 years ago
10_if2.patch Added testing ability 4 years ago
11_while.patch Added testing ability 4 years ago
12_while2.patch Added testing ability 4 years ago
13_while3.patch Added testing ability 4 years ago
14_while4.patch Added testing ability 4 years ago
15_for.patch Added testing ability 4 years ago
16_for2.patch Added testing ability 4 years ago
17_quiz2.patch Added testing ability 4 years ago
18_functions.patch Added testing ability 4 years ago
19_functions2.patch Added testing ability 4 years ago
20_quiz3.patch Added testing ability 4 years ago
21_errors.patch Added testing ability 4 years ago
22_errors2.patch Added testing ability 4 years ago
23_errors3.patch Added testing ability 4 years ago
24_errors4.patch Added testing ability 4 years ago
25_errors5.patch Added testing ability 4 years ago
26_hello2.patch Added testing ability 4 years ago
27_defer.patch Added testing ability 4 years ago
28_defer2.patch Added testing ability 4 years ago
29_errdefer.patch Added testing ability 4 years ago
30_switch.patch Added testing ability 4 years ago
31_switch2.patch Added testing ability 4 years ago
32_unreachable.patch Added testing ability 4 years ago
33_iferror.patch Added testing ability 4 years ago
34_quiz4.patch Added testing ability 4 years ago
35_enums.patch Added testing ability 4 years ago
36_enums2.patch Added testing ability 4 years ago
37_structs.patch Added testing ability 4 years ago
38_structs2.patch Added testing ability 4 years ago
39_pointers.patch Added testing ability 4 years ago
40_pointers2.patch Added testing ability 4 years ago
41_pointers3.patch Added testing ability 4 years ago
42_pointers4.patch Added testing ability 4 years ago
43_pointers5.patch Added testing ability 4 years ago
44_quiz5.patch Added testing ability 4 years ago
45_optionals.patch Added ex 45 optionals 4 years ago
README.md Added testing ability 4 years ago
eowyn.sh Added testing ability 4 years ago
gollum.sh Added testing ability 4 years ago

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.