mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-27 01:46:29 +00:00
6b17a18893
Add the check-exercises.py tool in the new tools directory. It is used to check that the exercises are correctly formatted, printing on stderr the invalid ones and the diff in the unified format. Update the exercises that don't use the canonical zig fmt format. Update some patches that cause the generated zig file to be incorrectly formatted.
10 lines
212 B
Diff
10 lines
212 B
Diff
62c62,68
|
|
< return detectProblems(n) ???;
|
|
---
|
|
> return detectProblems(n) catch |err| {
|
|
> if (err == MyNumberError.TooSmall) {
|
|
> return 10;
|
|
> }
|
|
>
|
|
> return err;
|
|
> };
|