summaryrefslogtreecommitdiffstatshomepage
path: root/exercises/051_values.zig
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-05-15 15:23:10 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-05-15 15:36:31 +0200
commit9ab9ebf33f7637236cea568a3565888b78fd08e5 (patch)
treed2ce675276be2d2a2d4a4d8370892fa603a6b469 /exercises/051_values.zig
parent3dafa3518b9a9309de101abe225266a279a23a8c (diff)
Refactor testing support
Following the implementation in `std.Build.Step.Compile, add the Kind type to differentiate between a normal executable and a test executable running zig tests. Replace `Exercise.run_test` field with `kind`. Compile the exercise in both the exe and test cases, reducing code duplication. Add the `check_output` and `check_test` methods in ZiglingStep, in order to differentiate the code checking a normal executable and a test executable. Update the tests to correctly check both the exe and test cases. Remove the temporary code added in commit 832772c.
Diffstat (limited to 'exercises/051_values.zig')
0 files changed, 0 insertions, 0 deletions