about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_multi_param_when.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_multi_param_when.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_multi_param_when.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_multi_param_when.txt b/js/scripting-lang/scratch_tests/test_multi_param_when.txt
new file mode 100644
index 0000000..cb4843e
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_multi_param_when.txt
@@ -0,0 +1,9 @@
+/* Test multi-parameter when expressions */
+classify : x y -> 
+  when x y is
+    0 0 then "both zero"
+    0 _ then "x is zero"
+    _ 0 then "y is zero"
+    _ _ then "neither zero";
+
+..out "multi-parameter when expression created successfully"; 
\ No newline at end of file