about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_debug_arrow.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_debug_arrow.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_debug_arrow.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_debug_arrow.txt b/js/scripting-lang/scratch_tests/test_debug_arrow.txt
new file mode 100644
index 0000000..050bf18
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_debug_arrow.txt
@@ -0,0 +1,26 @@
+/* Debug test for arrow functions */
+
+// Test 1: Regular arrow function assignment
+add_func : x y -> x + y;
+
+// Test 2: Arrow function in table
+calculator : {
+    add: x y -> x + y
+};
+
+// Test 3: Just the table creation
+table_only : {
+    name: "test",
+    add: x y -> x + y
+};
+
+// Output tests
+..out "=== DEBUG ARROW FUNCTIONS ===";
+
+..out "Regular function:";
+result1 : add_func 5 3;
+..out result1;
+
+..out "Table function:";
+result2 : calculator.add 5 3;
+..out result2; 
\ No newline at end of file