From c3a73b8e2b3a276dd87ee27528a1dd52db77e3b8 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Mon, 15 May 2023 00:06:15 +0200 Subject: Added testing exercise. --- patches/patches/102_testing.patch | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 patches/patches/102_testing.patch (limited to 'patches') 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)); -- cgit v1.2.3