aboutsummaryrefslogtreecommitdiff
path: root/tests/value
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-06 18:46:58 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-09 21:44:23 +0300
commitc55240fb05151cae046c75a793c164d72c988db2 (patch)
tree35cbba195e0fcc581944b7b098a3ea145741cf94 /tests/value
parent9e2b4fd3bbc0c61bf6c84540c52869ec7d830718 (diff)
Tests cleanup (take 2)
Diffstat (limited to 'tests/value')
-rw-r--r--tests/value/reverse.test110
1 files changed, 59 insertions, 51 deletions
diff --git a/tests/value/reverse.test b/tests/value/reverse.test
index 06de043..d667a9d 100644
--- a/tests/value/reverse.test
+++ b/tests/value/reverse.test
@@ -7,68 +7,76 @@
.include ../common.test
-: name-dir
+: name
:
-$* <<EOI >>EOO
-x = s/foo/bar/
-print ([string] $x)
-print "$x"
-print -e=$x
-EOI
-s/foo/bar/
-s/foo/bar/
--e=s/foo/bar/
-EOO
+{
+ : dir
+ :
+ $* <<EOI >>EOO
+ x = s/foo/bar/
+ print ([string] $x)
+ print "$x"
+ print -e=$x
+ EOI
+ s/foo/bar/
+ s/foo/bar/
+ -e=s/foo/bar/
+ EOO
-: name-proj
-:
-$* <<EOI >>EOO
-print ([strings] foo%bar foo% %bar)
-EOI
-foo%bar foo% %bar
-EOO
+ : proj
+ :
+ $* <<EOI >>EOO
+ print ([strings] foo%bar foo% %bar)
+ EOI
+ foo%bar foo% %bar
+ EOO
-: name-pair
-:
-$* <<EOI >>EOO
-print ([strings] foo@bar foo/@bar/ foo@ @bar @ "@@")
-EOI
-foo@bar foo/@bar/ foo@ @bar @ @@
-EOO
+ : pair
+ :
+ $* <<EOI >>EOO
+ print ([strings] foo@bar foo/@bar/ foo@ @bar @ "@@")
+ EOI
+ foo@bar foo/@bar/ foo@ @bar @ @@
+ EOO
-: name-combined
-:
-$* <<EOI >>EOO
-print ([strings] x%foo@y%bar x%foo/@y%bar/)
-EOI
-x%foo@y%bar x%foo/@y%bar/
-EOO
+ : combined
+ :
+ $* <<EOI >>EOO
+ print ([strings] x%foo@y%bar x%foo/@y%bar/)
+ EOI
+ x%foo@y%bar x%foo/@y%bar/
+ EOO
+}
: dir-path
:
-$* <<EOI >>"EOO"
-x = [dir_path] foo/bar/
-print ([string] $x)
-print "$x"
-print "-I$x"
-EOI
-foo/bar/
-foo/bar
--Ifoo/bar
-EOO
-
-: dir-path-root
-:
-if ($cxx.target.class != windows)
{
- $* <<EOI >>EOO
- x = [dir_path] /
+ : rel
+ :
+ $* <<EOI >>"EOO"
+ x = [dir_path] foo/bar/
print ([string] $x)
print "$x"
print "-I$x"
EOI
- /
- /
- -I/
+ foo/bar/
+ foo/bar
+ -Ifoo/bar
EOO
+
+ : root
+ :
+ if ($cxx.target.class != windows)
+ {
+ $* <<EOI >>EOO
+ x = [dir_path] /
+ print ([string] $x)
+ print "$x"
+ print "-I$x"
+ EOI
+ /
+ /
+ -I/
+ EOO
+ }
}