diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_compose_debug.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_compose_debug.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_compose_debug.txt b/js/scripting-lang/scratch_tests/test_compose_debug.txt new file mode 100644 index 0000000..e4e0f4d --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_compose_debug.txt @@ -0,0 +1,15 @@ +/* Debug compose function */ + +f : x -> x * 2; +g : x -> x + 1; + +/* Test individual functions */ +result1 : f 5; +result2 : g 5; +..out result1; +..out result2; + +/* Test composition */ +composed : compose(f, g); +result3 : composed 5; +..out result3; \ No newline at end of file |