about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_func_eval.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_func_eval.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_func_eval.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_func_eval.txt b/js/scripting-lang/scratch_tests/test_func_eval.txt
new file mode 100644
index 0000000..8944b1f
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_func_eval.txt
@@ -0,0 +1,9 @@
+/* Test function call evaluation */
+is_even : n -> n % 2 = 0;
+
+result1 : is_even 4;
+result2 : is_even 5;
+result3 : is_even 0;
+..out result1;
+..out result2;
+..out result3; 
\ No newline at end of file