summaryrefslogtreecommitdiffstatshomepage
path: root/patches
diff options
context:
space:
mode:
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));