aboutsummaryrefslogtreecommitdiff
path: root/tests/variable/representation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-19 11:34:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-28 16:03:35 +0200
commit9d0d078ff297138622cd2f3f1076f5984395e42b (patch)
treef8b93311adc03410422b3d602ba000822394aebc /tests/variable/representation
parenteb8b0f33b5e3b8a03d9c1b5230028ba9b9e8c391 (diff)
Add support for pair representation reversibility
Diffstat (limited to 'tests/variable/representation')
-rw-r--r--tests/variable/representation/buildfile8
-rw-r--r--tests/variable/representation/test.out8
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/variable/representation/buildfile b/tests/variable/representation/buildfile
index 7a2c3f2..8410c96 100644
--- a/tests/variable/representation/buildfile
+++ b/tests/variable/representation/buildfile
@@ -10,12 +10,20 @@ val += ///
val += //foo/
#val += dir{-L/}
+# Note that this is "reversed" when we assign it to test.options
+# since that variable is of type strings.
+#
+val += foo@bar foo/@bar/ foo@ @bar @ "@@"
+
val += foo%bar
val += foo%
val += %bar
val += foo%{bar}
#val += foo%file{x}
+val += x%foo@y%bar
+val += x%foo/@y%bar/
+
using cxx
cxx.ext = cxx
diff --git a/tests/variable/representation/test.out b/tests/variable/representation/test.out
index 04d8528..84e7250 100644
--- a/tests/variable/representation/test.out
+++ b/tests/variable/representation/test.out
@@ -6,7 +6,15 @@
'//'
'///'
'//foo/'
+'foo@bar'
+'foo/@bar/'
+'foo@'
+'@bar'
+'@'
+'@@'
'foo%bar'
'foo%'
'%bar'
'foo%bar'
+'x%foo@y%bar'
+'x%foo/@y%bar/'