summaryrefslogtreecommitdiffstats
path: root/tests/utf.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-06 07:58:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-06 07:58:25 (GMT)
commit22751e62a6fe567905f34d7e485e73142d142a1e (patch)
tree839587f4feb9027d8eb1c73a1776277a0929a0dd /tests/utf.test
parent9d533c3d4842c4792ffb95a166933602ccba7895 (diff)
downloadtcl-22751e62a6fe567905f34d7e485e73142d142a1e.zip
tcl-22751e62a6fe567905f34d7e485e73142d142a1e.tar.gz
tcl-22751e62a6fe567905f34d7e485e73142d142a1e.tar.bz2
3 testcases don't need pairsTo4bytes, fullutf is enough, since the dubble-surrogate-backslash syntac has no relation to the internal byte format.
Diffstat (limited to 'tests/utf.test')
-rw-r--r--tests/utf.test8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/utf.test b/tests/utf.test
index c281d11..0b2d368 100644
--- a/tests/utf.test
+++ b/tests/utf.test
@@ -13,8 +13,6 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
namespace import -force ::tcltest::*
}
-namespace path ::tcl::mathop
-
testConstraint ucs2 [expr {[format %c 0x010000] eq "\uFFFD"}]
testConstraint fullutf [expr {[format %c 0x010000] ne "\uFFFD"}]
testConstraint utf16 [expr {[string length [format %c 0x10000]] == 2}]
@@ -1226,7 +1224,7 @@ test utf-11.5 {Tcl_UtfToUpper Georgian (new in Unicode 11)} {
test utf-11.6 {Tcl_UtfToUpper beyond U+FFFF} {Uesc fullutf} {
string toupper \U10428
} \U10400
-test utf-11.7 {Tcl_UtfToUpper beyond U+FFFF} {pairsTo4bytes} {
+test utf-11.7 {Tcl_UtfToUpper beyond U+FFFF} fullutf {
string toupper \uD801\uDC28
} \uD801\uDC00
test utf-11.8 {Tcl_UtfToUpper low/high surrogate)} {
@@ -1254,7 +1252,7 @@ test utf-12.6 {Tcl_UtfToLower low/high surrogate)} {
test utf-12.7 {Tcl_UtfToLower beyond U+FFFF} {Uesc fullutf} {
string tolower \U10400
} \U10428
-test utf-12.8 {Tcl_UtfToLower beyond U+FFFF} {pairsTo4bytes} {
+test utf-12.8 {Tcl_UtfToLower beyond U+FFFF} fullutf {
string tolower \uD801\uDC00
} \uD801\uDC28
@@ -1282,7 +1280,7 @@ test utf-13.7 {Tcl_UtfToTitle low/high surrogate)} {
test utf-13.8 {Tcl_UtfToTitle beyond U+FFFF} {Uesc fullutf} {
string totitle \U10428\U10400
} \U10400\U10428
-test utf-13.9 {Tcl_UtfToTitle beyond U+FFFF} pairsTo4bytes {
+test utf-13.9 {Tcl_UtfToTitle beyond U+FFFF} fullutf {
string totitle \uD801\uDC28\uD801\uDC00
} \uD801\uDC00\uD801\uDC28