diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_each_simple_call.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_each_simple_call.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_each_simple_call.txt b/js/scripting-lang/scratch_tests/test_each_simple_call.txt new file mode 100644 index 0000000..746d0d4 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_each_simple_call.txt @@ -0,0 +1,20 @@ +/* Simple test for each function call */ + +/* Basic table creation */ +numbers : {1, 2, 3}; + +/* Define function */ +double : x -> x * 2; + +/* Test direct function call */ +direct_call : double 5; + +/* Test each with explicit arguments */ +each_call : each @double numbers; + +/* Output results */ +..out "=== EACH SIMPLE CALL TEST ==="; +..out "Direct call result:"; +..out direct_call; +..out "Each call result:"; +..out each_call; \ No newline at end of file |