aboutsummaryrefslogtreecommitdiff
path: root/tests/variable
diff options
context:
space:
mode:
Diffstat (limited to 'tests/variable')
-rw-r--r--tests/variable/override/testscript29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/variable/override/testscript b/tests/variable/override/testscript
index 82b8e98..28225c1 100644
--- a/tests/variable/override/testscript
+++ b/tests/variable/override/testscript
@@ -56,6 +56,7 @@
}
: override-cached
+:
: Test overriding cached target type/pattern-specific prepend/append
:
{
@@ -76,3 +77,31 @@
1 a b X
EOO
}
+
+: order
+:
+{
+ : after
+ :
+ $* x=1 x+=2 x=+0 <<EOI >>EOO
+ print $x
+ EOI
+ 0 1 2
+ EOO
+
+ : before
+ :
+ $* x+=2 x=+0 x=1 <<EOI >>EOO
+ print $x
+ EOI
+ 1
+ EOO
+
+ : both
+ :
+ $* x=+0 x=1 x+=2 <<EOI >>EOO
+ print $x
+ EOI
+ 1 2
+ EOO
+}