summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2012-04-10 01:17:02 +0000
committerBart Schaefer <barts@users.sourceforge.net>2012-04-10 01:17:02 +0000
commit4a4d9f3cbe72d3976f2df7053208c671c22c0410 (patch)
tree1cb72d24966c2c35c36ae41cd976005d7970d3ce /Test
parentusers/16944: more locals needed in url-quote-magic (diff)
downloadzsh-4a4d9f3cbe72d3976f2df7053208c671c22c0410.tar
zsh-4a4d9f3cbe72d3976f2df7053208c671c22c0410.tar.gz
zsh-4a4d9f3cbe72d3976f2df7053208c671c22c0410.tar.bz2
zsh-4a4d9f3cbe72d3976f2df7053208c671c22c0410.tar.lz
zsh-4a4d9f3cbe72d3976f2df7053208c671c22c0410.tar.xz
zsh-4a4d9f3cbe72d3976f2df7053208c671c22c0410.tar.zst
zsh-4a4d9f3cbe72d3976f2df7053208c671c22c0410.zip
30383, users/16991 (Vaclav), users/17000: Improve speed of arrayuniq() by
implementing a hash seive algorithm; add test to exercise it.
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 8bc37ff4c..cc2d6aecd 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1076,6 +1076,16 @@
>i
>willJOYCE
+ print -l JAMES${(u)${=:-$(echo yes yes she said yes i will yes she said she will and yes she did yes)}}JOYCE
+0:New hash seive unique algorithm for arrays of more than 10 elements
+>JAMESyes
+>she
+>said
+>i
+>will
+>and
+>didJOYCE
+
foo=
print "${${foo}/?*/replacement}"
0:Quoted zero-length strings are handled properly