diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_t_namespace.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_t_namespace.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_t_namespace.txt b/js/scripting-lang/scratch_tests/test_t_namespace.txt new file mode 100644 index 0000000..421655b --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_t_namespace.txt @@ -0,0 +1,11 @@ +/* Simple test for t namespace */ + +numbers : {1, 2, 3, 4, 5}; +double : x -> x * 2; + +/* Test t.map */ +t_doubled : t.map @double numbers; +first : t_doubled[1]; +..assert first = 2; + +..out "T namespace test completed"; \ No newline at end of file |