diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-10 20:05:48 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-10 20:05:48 +0100 |
commit | e86b3cce47e62c263301322ce24b56cf04b8cdb8 (patch) | |
tree | 91eaa77e5d56290e2d06e6d8340f6831fbd0b139 /Test/D07multibyte.ztst | |
parent | 3bca11c35cf9185c28a9b01e866bc5c7b1a96bfd (diff) | |
download | zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.tar.gz zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.tar.xz zsh-e86b3cce47e62c263301322ce24b56cf04b8cdb8.zip |
36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.
Diffstat (limited to 'Test/D07multibyte.ztst')
-rw-r--r-- | Test/D07multibyte.ztst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst index 3fadd8066..ace191f06 100644 --- a/Test/D07multibyte.ztst +++ b/Test/D07multibyte.ztst @@ -525,3 +525,9 @@ fi done 0:Invalid characters in pattern matching + + [[ $'\xe3' == [[:INCOMPLETE:]] ]] || print fail 1 + [[ $'\xe3\x83' == [[:INCOMPLETE:]][[:INVALID:]] ]] || print fail 2 + [[ $'\xe3\x83\x9b' != [[:INCOMPLETE:][:NVALID:]] ]] || print fail 3 + [[ $'\xe3\x83\x9b' = ? ]] || print fail 4 +0:Testing incomplete and invalid multibyte character components |