Added testing exercise.

This commit is contained in:
Chris Boesch
2023-05-15 00:06:15 +02:00
parent 4c6b6b94e4
commit c3a73b8e2b
4 changed files with 129 additions and 5 deletions

View 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));