summaryrefslogtreecommitdiffstats
path: root/tests/utf.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-09 20:34:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-09 20:34:29 (GMT)
commit9d63aabcdd601c7f71002fd286dea8588588ec92 (patch)
treee29c83573d6c14ecdba5f139e177ac4916f1fee0 /tests/utf.test
parent312e3868140b7b11f1b078ab48779769a32b17eb (diff)
parent0f369563d656dc5592d01b9736568bf7421ef93d (diff)
downloadtcl-9d63aabcdd601c7f71002fd286dea8588588ec92.zip
tcl-9d63aabcdd601c7f71002fd286dea8588588ec92.tar.gz
tcl-9d63aabcdd601c7f71002fd286dea8588588ec92.tar.bz2
[Bug 3464428] string is graph \u0120 is wrong
Diffstat (limited to 'tests/utf.test')
-rw-r--r--tests/utf.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/utf.test b/tests/utf.test
index 875c5dc..fcd2a73 100644
--- a/tests/utf.test
+++ b/tests/utf.test
@@ -309,6 +309,34 @@ test utf-21.5 {unicode graph char in regc_locale.c} {
# [Bug 3464428]
regexp {^[[:graph:]]+$} \u0120
} {1}
+test utf-21.6 {TclUniCharIsGraph} {
+ # [Bug 3464428]
+ string is graph \u00a0
+} {0}
+test utf-21.7 {unicode graph char in regc_locale.c} {
+ # [Bug 3464428]
+ regexp {[[:graph:]]} \u0020\u00a0\u2028\u2029
+} {0}
+test utf-21.8 {TclUniCharIsPrint} {
+ # [Bug 3464428]
+ string is print \u0009
+} {0}
+test utf-21.9 {unicode print char in regc_locale.c} {
+ # [Bug 3464428]
+ regexp {[[:print:]]} \u0009
+} {0}
+test utf-21.10 {unicode print char in regc_locale.c} {
+ # [Bug 3464428]
+ regexp {[[:print:]]} \u0009
+} {0}
+test utf-21.11 {TclUniCharIsControl} {
+ # [Bug 3464428]
+ string is control \u00ad
+} {1}
+test utf-21.12 {unicode control char in regc_locale.c} {
+ # [Bug 3464428]
+ regexp {^[[:cntrl:]]$} \u00ad
+} {1}
test utf-22.1 {TclUniCharIsWordChar} {
string wordend "xyz123_bar fg" 0