about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_gradual_build.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_gradual_build.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_gradual_build.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_gradual_build.txt b/js/scripting-lang/scratch_tests/test_gradual_build.txt
new file mode 100644
index 0000000..4494770
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_gradual_build.txt
@@ -0,0 +1,24 @@
+/* Gradual build test */
+
+/* Basic table creation */
+numbers : {1, 2, 3, 4, 5};
+
+/* Test enhanced map */
+double : x -> x * 2;
+doubled : map @double numbers;
+
+/* Test t.map */
+t_doubled : t.map @double numbers;
+
+/* Test enhanced filter */
+isEven : x -> x % 2 == 0;
+even_numbers : filter @isEven numbers;
+
+/* Output results */
+..out "=== GRADUAL BUILD TEST ===";
+..out "Enhanced map:";
+..out doubled;
+..out "t.map:";
+..out t_doubled;
+..out "Enhanced filter:";
+..out even_numbers; 
\ No newline at end of file