about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_each_step_by_step.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_each_step_by_step.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_each_step_by_step.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_each_step_by_step.txt b/js/scripting-lang/scratch_tests/test_each_step_by_step.txt
new file mode 100644
index 0000000..2a0e3ef
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_each_step_by_step.txt
@@ -0,0 +1,26 @@
+/* Step-by-step test for each combinator */
+
+/* Basic table creation */
+numbers : {1, 2, 3};
+
+/* Define function first */
+double : x -> x * 2;
+
+/* Test each step by step */
+step1 : each;
+step2 : step1 @double;
+step3 : step2 numbers;
+
+/* Test direct call */
+direct_result : each @double numbers;
+
+/* Output results */
+..out "=== EACH STEP BY STEP TEST ===";
+..out "Step 1 (each):";
+..out step1;
+..out "Step 2 (each @double):";
+..out step2;
+..out "Step 3 (result numbers):";
+..out step3;
+..out "Direct result:";
+..out direct_result; 
\ No newline at end of file