about summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-26 01:16:52 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-29 09:14:54 +0000
commit1d9c6a746c5c31ce8b0bd0ccd524a843f87c4e3e (patch)
treeb9b37bf4f0d8ac75004cc0a9e283a1297b92d404 /Test/D04parameter.ztst
parentbced1beb8cc530ea28aa994808707043dd156fb8 (diff)
downloadzsh-1d9c6a746c5c31ce8b0bd0ccd524a843f87c4e3e.tar.gz
zsh-1d9c6a746c5c31ce8b0bd0ccd524a843f87c4e3e.tar.xz
zsh-1d9c6a746c5c31ce8b0bd0ccd524a843f87c4e3e.zip
37752: More tests for the previous patch.
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 458c5bbe1..7cb297e0c 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -481,6 +481,9 @@
     '((0.25542 * 60) - 15)*60'
     'repeat 3 (x)'
     'repeat 3 (echo foo; echo bar)'
+    'repeat $(( 2 + 4 )) (x)'
+    'repeat $( : foo bar; echo 4) (x)'
+    'repeat "1"'\''2'\''$(( 3 + 0 ))$((echo 4);)\ 5 (x)'
   )
   for string in $strings; do
     array=(${(z)string})
@@ -530,6 +533,21 @@
 >7:echo:
 >8:bar:
 >9:):
+>1:repeat:
+>2:$(( 2 + 4 )):
+>3:(:
+>4:x:
+>5:):
+>1:repeat:
+>2:$( : foo bar; echo 4):
+>3:(:
+>4:x:
+>5:):
+>1:repeat:
+>2:"1"'2'$(( 3 + 0 ))$((echo 4);)\ 5:
+>3:(:
+>4:x:
+>5:):
 
 
   line=$'A line with # someone\'s comment\nanother line # (1 more\nanother one'