diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_t_function_call.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_t_function_call.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_t_function_call.txt b/js/scripting-lang/scratch_tests/test_t_function_call.txt new file mode 100644 index 0000000..a258f0d --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_t_function_call.txt @@ -0,0 +1,15 @@ +/* Test t. function calls */ + +/* Basic table creation */ +numbers : {1, 2, 3}; + +/* Define function */ +double : x -> x * 2; + +/* Test t.map function call */ +t_map_result : t.map @double numbers; + +/* Output results */ +..out "=== T. FUNCTION CALL TEST ==="; +..out "t.map result:"; +..out t_map_result; \ No newline at end of file |