diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-05-15 01:00:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-15 01:00:28 +0200 |
| commit | 5cbaa0441f1a52532ac68899bb5b64d3595e5a06 (patch) | |
| tree | db9710577e27321a7a69b9d8133dddf13c14f8de /patches | |
| parent | 76ee4eb043ae290102d3fb19375931990f2a9824 (diff) | |
| parent | c3a73b8e2b3a276dd87ee27528a1dd52db77e3b8 (diff) | |
Merge pull request #304 from chrboesch/testing_exercise
Added testing exercise.
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/102_testing.patch | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/patches/patches/102_testing.patch b/patches/patches/102_testing.patch new file mode 100644 index 0000000..49daf0c --- /dev/null +++ b/patches/patches/102_testing.patch @@ -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)); |
