aboutsummaryrefslogtreecommitdiff
path: root/tests/expansion/concat.test
blob: ba98624212104ffa13faa4461fbed2204095bf95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# file      : tests/expansion/type.test
# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

# Test concatenated expansion.

.include ../common.test

: typed-exceptions
:
$* <<EOI >>EOO
d = [dir_path] dir
s = [string] foo

print $d/{bar}
print $s{bar}
print $d/$s{bar}
print file{x$s}
print dir/{x$s}
print prj%{x$s}
EOI
dir/bar
foo{bar}
dir/foo{bar}
file{xfoo}
dir/xfoo
prj%xfoo
EOO