diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-20 08:57:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-20 16:01:40 +0200 |
commit | c2d2a1ac0ac41a068c4bf09f8236a61d576e74f5 (patch) | |
tree | 32fe50dc4f95772493f4242ce40fb0afd01c0bb6 /tests/type/map | |
parent | 88640e677fa0695783eac68014d7d8d5bc42d117 (diff) |
Add custom subscript, iterate functions for vector and set value types
Diffstat (limited to 'tests/type/map')
-rw-r--r-- | tests/type/map/testscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/type/map/testscript b/tests/type/map/testscript index 7b90ddd..1c6224a 100644 --- a/tests/type/map/testscript +++ b/tests/type/map/testscript @@ -34,9 +34,11 @@ EOO $* <<EOI >>EOO m = [string_map] a@1 b@2 c@3 print ($m[b]) +print $type($m[b]) print ($m[z]) EOI 2 +string [null] EOO @@ -45,6 +47,9 @@ EOO $* <<EOI >>EOO for p: [string_map] a@1 b@2 c@3 print $first($p) $second($p) + +for p: [string_map, null] + fail bad EOI a 1 b 2 |