about summary refs log tree commit diff
path: root/Test/D07multibyte.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-12-08 15:08:24 +0000
committerPeter Stephenson <pws@zsh.org>2015-12-08 15:08:24 +0000
commit7f5b2f570961cd9b20f322d7f45318878a1a4b29 (patch)
tree88b737db487626fb492473126c21fed356efc1e9 /Test/D07multibyte.ztst
parent4105f79a3a9b5a85c4ce167865e5ac661be160dc (diff)
downloadzsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.tar.gz
zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.tar.xz
zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.zip
37348: Tests and fix for ${(q+)...}.
Needs dupstring() for empty string case.
Diffstat (limited to 'Test/D07multibyte.ztst')
-rw-r--r--Test/D07multibyte.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index f95c06d9a..39ba5ef8b 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -546,3 +546,10 @@
   [[ $'\xe3\x83\x9b' != [[:INCOMPLETE:][:INVALID:]] ]] || print fail 3
   [[ $'\xe3\x83\x9b' = ? ]] || print fail 4
 0:Testing incomplete and invalid multibyte character components
+
+  print -r -- ${(q+):-ホ}
+  foo='She said "ホ".  I said "You can'\''t '\''ホ'\'' me!'
+  print -r -- ${(q+)foo}
+0:${(q+)...} with printable multibyte characters
+>ホ
+>'She said "ホ".  I said "You can'\''t '\''ホ'\'' me!'