Ensure the exercises use the canonical format
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.
This commit is contained in:
parent
9470bc1804
commit
88e9e785ef
10 changed files with 127 additions and 30 deletions
|
|
@ -1,8 +1,8 @@
|
|||
22,24c22,24
|
||||
< 0o131, // octal
|
||||
< 0o131, // octal
|
||||
< 0b1101000, // binary
|
||||
< 0x66, // hex
|
||||
< 0x66, // hex
|
||||
---
|
||||
> 0o132, // octal
|
||||
> 0o132, // octal
|
||||
> 0b1101001, // binary
|
||||
> 0x67, // hex
|
||||
> 0x67, // hex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue