summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-01-12 11:18:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-01-12 11:18:48 (GMT)
commit0019582fd2f3684654bcf6a14b64103461919179 (patch)
tree485d0879653042707aa034e8b6c532317c466667 /tests/string.test
parentd34c6b6526e8bb7c96736c2ef47422357e68c8d9 (diff)
parent244885a03e8d66f5500058eaf820d6b47f292007 (diff)
downloadtcl-0019582fd2f3684654bcf6a14b64103461919179.zip
tcl-0019582fd2f3684654bcf6a14b64103461919179.tar.gz
tcl-0019582fd2f3684654bcf6a14b64103461919179.tar.bz2
merge core-8-branch
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/string.test b/tests/string.test
index e36ebae..f56db67 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -24,6 +24,7 @@ catch [list package require -exact Tcltest [info patchlevel]]
testConstraint testobj [expr {[info commands testobj] != {}}]
testConstraint testindexobj [expr {[info commands testindexobj] != {}}]
+testConstraint fullutf [expr {[format %c 0x010000] != "\ufffd"}]
# Used for constraining memory leak tests
testConstraint memory [llength [info commands memory]]
@@ -1288,6 +1289,9 @@ test string-12.22 {string range, shimmering binary/index} {
binary scan $s a* x
string range $s $s end
} 000000001
+test string-12.23 {string range, surrogates, bug [11ae2be95dac9417]} fullutf {
+ list [string range a\U100000b 1 1] [string range a\U100000b 2 2] [string range a\U100000b 3 3]
+} [list \U100000 {} b]
test string-13.1 {string repeat} {
list [catch {string repeat} msg] $msg