mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
Added testing exercise.
This commit is contained in:
8
patches/patches/102_testing.patch
Normal file
8
patches/patches/102_testing.patch
Normal file
@@ -0,0 +1,8 @@
|
||||
86c86
|
||||
< try testing.expect(sub(10, 5) == 6);
|
||||
---
|
||||
> try testing.expect(sub(10, 5) == 5);
|
||||
111c111
|
||||
< try testing.expectError(error.???, divide(15, 0));
|
||||
---
|
||||
> try testing.expectError(error.DivisionByZero, divide(15, 0));
|
||||
Reference in New Issue
Block a user