about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_simple_func_call.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_simple_func_call.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_simple_func_call.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_simple_func_call.txt b/js/scripting-lang/scratch_tests/test_simple_func_call.txt
new file mode 100644
index 0000000..06ec7cd
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_simple_func_call.txt
@@ -0,0 +1,10 @@
+/* Test with a simpler function call */
+id : x -> x;
+
+test_simple : n ->
+  when id n is
+    n then "same"
+    _ then "different";
+
+result : test_simple 4;
+..out result; 
\ No newline at end of file