aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/variable/override/testscript30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/variable/override/testscript b/tests/variable/override/testscript
index 28225c1..f8a930b 100644
--- a/tests/variable/override/testscript
+++ b/tests/variable/override/testscript
@@ -105,3 +105,33 @@
1 2
EOO
}
+
+: multiple
+:
+{
+ : assign
+ :
+ $* x=0 !y=0 x=1 !y=1 <<EOI >>EOO
+ print $x
+ print $y
+ EOI
+ 1
+ 1
+ EOO
+
+ : append
+ :
+ $* x=0 x+=1 x+=2 <<EOI >>EOO
+ print $x
+ EOI
+ 0 1 2
+ EOO
+
+ : prepend
+ :
+ $* x=2 x=+1 x=+0 <<EOI >>EOO
+ print $x
+ EOI
+ 0 1 2
+ EOO
+}