about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_expression_function.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_expression_function.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_expression_function.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_expression_function.txt b/js/scripting-lang/scratch_tests/test_expression_function.txt
new file mode 100644
index 0000000..4b3308f
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_expression_function.txt
@@ -0,0 +1,9 @@
+/* Test function with expression in body */
+
+// Function with expression
+expr_func : x y -> x + y;
+
+// Test it
+..out "=== EXPRESSION FUNCTION TEST ===";
+result : expr_func 5 3;
+..out result; 
\ No newline at end of file