aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-05-06 18:02:18 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-05-06 18:12:04 +0200
commit1dd5852bec6fb72ebb1b712c7a78425dcc015390 (patch)
tree9717148034f0d7f915affffde03296659d824acd /exercises
parent397c6671c0050f707b0599a5fc96fab9621281e6 (diff)
build: use multiline string literals when necessary
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
Diffstat (limited to 'exercises')
0 files changed, 0 insertions, 0 deletions