summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2020-04-26 22:11:07 (GMT)
committerdgp <dgp@users.sourceforge.net>2020-04-26 22:11:07 (GMT)
commitd92241af58e44e02c9dab704c9b1e3925a6f75ab (patch)
tree8ef71cb04ec28db4e110ebdfd376df5da7d8749c /tests
parentd9333f5aab27d44e0bb0a9038fb07a7fbf7a953d (diff)
downloadtcl-d92241af58e44e02c9dab704c9b1e3925a6f75ab.zip
tcl-d92241af58e44e02c9dab704c9b1e3925a6f75ab.tar.gz
tcl-d92241af58e44e02c9dab704c9b1e3925a6f75ab.tar.bz2
More test reconciliation.
Diffstat (limited to 'tests')
-rw-r--r--tests/utf.test12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/utf.test b/tests/utf.test
index 9f3234b..b74d8f5 100644
--- a/tests/utf.test
+++ b/tests/utf.test
@@ -33,6 +33,8 @@ testConstraint teststringobj [llength [info commands teststringobj]]
testConstraint testutfnext [llength [info commands testutfnext]]
testConstraint testutfprev [llength [info commands testutfprev]]
+testConstraint tip413 [eq {} [string trim \x00]]
+
catch {unset x}
test utf-1.1 {Tcl_UniCharToUtf: 1 byte sequences} testbytestring {
@@ -173,7 +175,7 @@ test utf-4.12.1 {Tcl_NumUtfChars: #4-byte UTF-8 character} {testnumutfchars test
} 1
test utf-4.12.2 {Tcl_NumUtfChars: #4-byte UTF-8 character} {testnumutfchars testbytestring tip389} {
testnumutfchars [testbytestring \xF0\x9F\x92\xA9] 4
-} 1
+} 2
test utf-5.1 {Tcl_UtfFindFirst} {testfindfirst testbytestring} {
testfindfirst [testbytestring "abcbc"] 98
@@ -1221,6 +1223,14 @@ test utf-24.4 {unicode space char in regc_locale.c} {
# this returns 1 with Unicode 7 compliance
list [regexp {^[[:space:]]+$} \u1680\u180E\u202F] [regexp {^\s+$} \u1680\u180E\u202F]
} {1 1}
+test utf-24.5 {TclUniCharIsSpace} tip413 {
+ # this returns 1 with Unicode 7/TIP 413 compliance
+ string is space \x85\u1680\u180E\u200B\u202F\u2060
+} 1
+test utf-24.6 {unicode space char in regc_locale.c} tip413 {
+ # this returns 1 with Unicode 7/TIP 413 compliance
+ list [regexp {^[[:space:]]+$} \x85\u1680\u180E\u200B\u202F\u2060] [regexp {^\s+$} \x85\u1680\u180E\u200B\u202F\u2060]
+} {1 1}
test utf-25.1 {Tcl_UniCharNcasecmp} -constraints teststringobj \
-setup {