about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_complex_func_debug.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_complex_func_debug.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_complex_func_debug.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_complex_func_debug.txt b/js/scripting-lang/scratch_tests/test_complex_func_debug.txt
new file mode 100644
index 0000000..dacb3ca
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_complex_func_debug.txt
@@ -0,0 +1,13 @@
+/* Test complex validation function directly */
+
+/* Complex function for testing */
+complex_validation : x y -> (x > 0) and (y > 0) and (x + y > 10);
+
+/* Test the function directly */
+test1 : complex_validation 5 8;    /* Should be true */
+test2 : complex_validation 0 8;    /* Should be false */
+test3 : complex_validation 5 3;    /* Should be false */
+
+..out test1;
+..out test2;
+..out test3; 
\ No newline at end of file