about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_func_call_original.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_func_call_original.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_func_call_original.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_func_call_original.txt b/js/scripting-lang/scratch_tests/test_func_call_original.txt
new file mode 100644
index 0000000..0d4e8d0
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_func_call_original.txt
@@ -0,0 +1,10 @@
+/* Test the original failing case */
+is_even : n -> n % 2 = 0;
+
+test_original : n ->
+  when is_even n is
+    true then "even"
+    false then "odd";
+
+result : test_original 4;
+..out result; 
\ No newline at end of file