diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_compose_debug_detailed.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_compose_debug_detailed.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_compose_debug_detailed.txt b/js/scripting-lang/scratch_tests/test_compose_debug_detailed.txt new file mode 100644 index 0000000..1dd80d7 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_compose_debug_detailed.txt @@ -0,0 +1,22 @@ +/* Debug compose function in detail */ + +/* Create simple functions */ +double : x -> x * 2; +add1 : x -> x + 1; + +/* Test individual functions */ +test1 : double 5; +test2 : add1 5; +..out test1; +..out test2; + +/* Test composition step by step */ +step1 : add1 5; +step2 : double step1; +..out step1; +..out step2; + +/* Test compose function */ +composed : compose(double, add1); +result : composed 5; +..out result; \ No newline at end of file |