about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_compose_direct.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_compose_direct.txt')
-rw-r--r--js/scripting-lang/scratch_tests/test_compose_direct.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_compose_direct.txt b/js/scripting-lang/scratch_tests/test_compose_direct.txt
new file mode 100644
index 0000000..103ed46
--- /dev/null
+++ b/js/scripting-lang/scratch_tests/test_compose_direct.txt
@@ -0,0 +1,9 @@
+/* Test compose function directly */
+
+f : x -> x * 2;
+g : x -> x + 1;
+
+/* Test compose function directly */
+composed : compose(f, g);
+result : composed 5;
+..out result; 
\ No newline at end of file