diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-14 08:03:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-14 08:03:32 +0200 |
commit | 218a739b33325c5dd6baa5cf6291dad849ad2441 (patch) | |
tree | 754661d712d80d87c1c113cb7bfd6ec542e5858b /tests/value | |
parent | 6d892e32a83908406a6f2fc6d47dd4a8b131fc60 (diff) |
Handle NULL values in $string() and $concat() functions
This is relied upon by the parser to provide conversion/concatenation
semantics consistent with untyped values. Note that we handle NULL values
only for types that have empty representation.
Diffstat (limited to 'tests/value')
-rw-r--r-- | tests/value/concat.testscript | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/value/concat.testscript b/tests/value/concat.testscript index 97391c4..69ec9fc 100644 --- a/tests/value/concat.testscript +++ b/tests/value/concat.testscript @@ -3,6 +3,48 @@ .include ../common.testscript +: null +: +{ + : untyped + : + $* <<EOI >>/EOO + x = [null] + + print y "$x x" + print "x $x" y + + print $x"x" + print "x"$x + print $x$x + EOI + y x + x y + x + x + {} + EOO + + : string + : + $* <<EOI >>/EOO + x = [string,null] + + print y "$x x" + print "x $x" y + + print $x"x" + print "x"$x + print $x$x + EOI + y x + x y + x + x + {} + EOO +} + : dir_path : { |