1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

36478: Add [[:INCOMPLETE:]] and [[:INVALID:]] pattern tests.

This commit is contained in:
Peter Stephenson 2015-09-10 20:05:48 +01:00
parent 3bca11c35c
commit e86b3cce47
6 changed files with 77 additions and 14 deletions

View file

@ -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