Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-05-09 | tests: remove the missing functions from RunStep | Manlio Perillo | |
Use directly the RunStep.addCheck method, instead. | |||
2023-05-09 | build: improve code formatting | Manlio Perillo | |
Avoid too long lines or too many line breaks. | |||
2023-05-09 | build: add the dumpArgs function | Manlio Perillo | |
Use it in Zigling.compile, in order to reduce code duplication. | |||
2023-05-09 | build: fix doc-comments | Manlio Perillo | |
Some functions and custom build steps incorrectly used a normal comment. Use a doc-comment instead. Additionally, use a present tense verb to describe the action of a function or custom build step. | |||
2023-05-09 | build: use the blank identifier in the parameter list | Manlio Perillo | |
Instead of marking a parameter as unused inside the function body. | |||
2023-05-09 | build: use self when using @fieldParentPtr | Manlio Perillo | |
Update PrintStep and SkipStep to use the `self` variable when getting the parent pointer from Step. This convention is used in `std.Build`. | |||
2023-05-09 | build: don't install skipped exercises | Manlio Perillo | |
Update the code in `zig build install` and `zig build -Dn=n install`, so that exercises that must be skipped are not installed, since it will cause an error. Ensure that a skip message is printed. | |||
2023-05-09 | build: fix `zig build -Dhealed install` | Manlio Perillo | |
The command fails because the path to the exercises directory was incorrectly set to "exercises" instead of `work_path`. The bug was introduced in commit b56bb7b (build: enable full parallelism when -Dhealed is set). Remove the comment about not using multi-object loop, since it is confusing. | |||
2023-05-09 | Merge branch 'ratfactor:main' into testing | Chris Boesch | |
2023-05-08 | Cleaning up zig build output | Dave Gauer | |
* Only show actual Zig compiler errors, not build internals to confused and dismay. * Remove advanced usage instructions not needed in normal operation. | |||
2023-05-07 | Merge branch 'ratfactor:main' into testing | Chris Boesch | |
2023-05-07 | Merge pull request #292 from kimshrier/exercise_099_typo | Chris Boesch | |
Add missing word "a" | |||
2023-05-07 | Merge pull request #291 from kimshrier/exercise_098_typo | Chris Boesch | |
Improve wording in some comments | |||
2023-05-07 | Merge pull request #290 from kimshrier/exercise_096_fix_example | Chris Boesch | |
Fix reference to slice_ptr in example code | |||
2023-05-07 | Merge pull request #289 from kimshrier/exercise_092_typo | Chris Boesch | |
Remove repeated word "with" | |||
2023-05-07 | Merge pull request #288 from kimshrier/exercise_076_typo | Chris Boesch | |
Add missing word "of" | |||
2023-05-07 | Merge pull request #287 from kimshrier/exercise_072_typo | Chris Boesch | |
Add missing word "to" | |||
2023-05-07 | Merge pull request #286 from kimshrier/exercise_001_typo | Chris Boesch | |
fix typo well -> will | |||
2023-05-07 | Add missing word "a" | Kim SHrier | |
2023-05-07 | Improve wording in some comments | Kim SHrier | |
2023-05-07 | Fix reference to slice_ptr in example code | Kim SHrier | |
2023-05-07 | Remove repeated word "with" | Kim SHrier | |
2023-05-07 | Add missing word "of" | Kim SHrier | |
2023-05-07 | add missing word "to" | Kim SHrier | |
2023-05-06 | fix typo well -> will | Kim SHrier | |
2023-05-06 | Merge branch 'ratfactor:main' into testing | Chris Boesch | |
2023-05-06 | Merge pull request #285 from chrboesch/improve_instruction | Chris Boesch | |
Improve instructions. | |||
2023-05-06 | Merge branch 'main' into improve_instruction | Chris Boesch | |
2023-05-06 | Improve instructions. | Chris Boesch | |
2023-05-06 | Merge branch 'ratfactor:main' into testing | Chris Boesch | |
2023-05-06 | Merge pull request #284 from perillo/improve-exercise-type-more | Chris Boesch | |
Improve Exercise type more | |||
2023-05-06 | build: improve Exercise.addExecutable | Manlio Perillo | |
Replace the file_path variable with path. | |||
2023-05-06 | build: use multiline string literals when necessary | Manlio Perillo | |
Update the output and hint fields in the `exercises` slice to use a multiline string literal when the string have multiple lines or use the `"` character. This will greatly improve readability. Additionally, remove the trailing whitespace on each line and check it in the validate_exercises function. Update the output comparison logic in ZiglingStep, since the current code assumes that the string has only one line. Update test/tests.zig to use the new `CheckNamedStep` in test case 1, since RunStep.StdIo.Check is no longer able to correctly check the output. Fixes #283 | |||
2023-05-06 | Merge branch 'ratfactor:main' into testing | Chris Boesch | |
2023-05-06 | build: remove assertion in `Exercise.key` | Manlio Perillo | |
Use `orelse unreachable` instead, in order to simplify the code. Fix doc-comments in the Exercise type. | |||
2023-05-06 | build: make `Exercise.hint` optional | Manlio Perillo | |
Use an optional type, instead of an empty string, since it is more idiomatic. | |||
2023-05-05 | Ex 101: Magic bags better than buckets for metaphors | Dave Gauer | |
2023-05-05 | Merge pull request #281 from perillo/add-healed-path-option | Chris Boesch | |
Add the -Dhealed-path option | |||
2023-05-05 | build: add the healed-path option | Manlio Perillo | |
This is necessary in the unit tests, to ensure each test case use a different exercises directory. Update test/tests.zig to use the new healed-path option, ensuring that each temp directory is removed. In test case 3, 4 and 5, move case_step as the first step in the dependency chain. This will improve the build summary tree. In test case 5, remove the dependency to heal_step, since it is not necessary. | |||
2023-05-05 | Merge pull request #280 from arnon4/patch-1 | Chris Boesch | |
Fixed example syntax for inline else | |||
2023-05-05 | Fixed example syntax for inline else | Arnon | |
2023-05-04 | Merge branch 'main' of github.com:ratfactor/ziglings | Dave Gauer | |
2023-05-04 | Ex 001 remove ancient script reference + wording | Dave Gauer | |
2023-05-04 | test: remove obsolete comment in the heal function | Manlio Perillo | |
Remove the comment about using POSIX patch variant, since we now use the -s option. | |||
2023-05-04 | test: fix doc-comments | Manlio Perillo | |
CheckStep, FailStep, fail, HealStep and heal incorrectly used a normal comment, instead of a doc-comment. Additionally, improve the documentation for FailStep and HealStep. | |||
2023-05-04 | test: improve test case 1 and 2 | Manlio Perillo | |
In test case 1 and 2, remove the `i` variable and use `ex.number()` instead. In test case 2, when checking the exercise output from stderr, also check that stdout is empty and vice versa. | |||
2023-05-04 | Merge pull request #265 from Arya-Elfren/methods-clarification | Dave Gauer | |
Clarify the methods syntax sugar & a bit more | |||
2023-05-04 | Merge pull request #264 from Arya-Elfren/float-clarification | Dave Gauer | |
Clarify `f16` maths - closes #204 | |||
2023-05-03 | Merge branch 'ratfactor:main' into testing | Chris Boesch | |
2023-05-03 | Merge pull request #279 from perillo/refactor-zigling-step-2 | Chris Boesch | |
Refactor ZiglingStep |