aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-336/simon-proctor/raku/ch-2.raku12
1 files changed, 12 insertions, 0 deletions
diff --git a/challenge-336/simon-proctor/raku/ch-2.raku b/challenge-336/simon-proctor/raku/ch-2.raku
new file mode 100644
index 0000000000..41448bbc4d
--- /dev/null
+++ b/challenge-336/simon-proctor/raku/ch-2.raku
@@ -0,0 +1,12 @@
+#!/usr/bin/env raku
+
+multi sub MAIN(:t(:$test)) is hidden-from-USAGE {
+ use Test;
+ is final-score("5","2","C","D","+"), 30;
+ is final-score("5","-2","4","C","D","9","+","+"), 27;
+ is final-score("7","D","D","C","+","3"), 45;
+ is final-score("-5","-10","+","D","C","+"), -55;
+ is final-score("3","6","+","D","C","8","+","D","-2","C","+"), 128;
+ done-testing;
+
+}