From e86b3cce47e62c263301322ce24b56cf04b8cdb8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 10 Sep 2015 20:05:48 +0100 Subject: 36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests. --- Test/D07multibyte.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test/D07multibyte.ztst') 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 -- cgit 1.4.1