diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_map_comparison.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_map_comparison.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_map_comparison.txt b/js/scripting-lang/scratch_tests/test_map_comparison.txt new file mode 100644 index 0000000..742c9dd --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_map_comparison.txt @@ -0,0 +1,14 @@ +/* Test to compare map and each behavior */ + +numbers : {1, 2, 3, 4, 5}; +add_ten : x -> x + 10; + +/* Test map with single table */ +map_result : map @add_ten numbers; +..out "Map with single table:"; +..out map_result; + +/* Test each with single table */ +each_result : each @add_ten numbers; +..out "Each with single table:"; +..out each_result; \ No newline at end of file |