aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-05-15 00:06:15 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-05-15 00:06:15 +0200
commitc3a73b8e2b3a276dd87ee27528a1dd52db77e3b8 (patch)
treecc0237541ad510bcbf467a63ec6734ba27c61243 /patches
parent4c6b6b94e4e40ec9e02a64b97aec34ee4605ae6e (diff)
Added testing exercise.
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/102_testing.patch8
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));