about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_debug_enhanced_case.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_debug_enhanced_case.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_debug_enhanced_case.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_debug_enhanced_case.txt b/js/scripting-lang/scratch_tests/test_debug_enhanced_case.txt
new file mode 100644
index 0000000..2090669
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_debug_enhanced_case.txt
@@ -0,0 +1,19 @@
+/* Debug test for enhanced case statements */
+
+/* Simple test first */
+mod3 : n -> n % 3;
+mod5 : n -> n % 5;
+is_zero : x -> x = 0;
+
+/* Test basic function calls */
+test1 : mod3 15;
+test2 : mod5 15;
+test3 : is_zero 0;
+
+..out test1;
+..out test2;
+..out test3;
+
+/* Test table with function calls */
+test_table : {mod3 15, mod5 15};
+..out test_table; 
\ No newline at end of file