summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2006-01-23 11:48:25 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2006-01-23 11:48:25 (GMT)
commit896bde52130e400c7a023c128d609664b290ab3b (patch)
treed550df8524661b7913caf74f5590b0d761d14b35 /tests
parent81f0f7d83c0d31ad950d4d757b3e12848859d980 (diff)
downloadtcl-896bde52130e400c7a023c128d609664b290ab3b.zip
tcl-896bde52130e400c7a023c128d609664b290ab3b.tar.gz
tcl-896bde52130e400c7a023c128d609664b290ab3b.tar.bz2
added test for [Bug 1410553]
Diffstat (limited to 'tests')
-rw-r--r--tests/string.test12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index ec730b7..8548c31 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: string.test,v 1.36.2.5 2005/05/11 00:48:01 hobbs Exp $
+# RCS: @(#) $Id: string.test,v 1.36.2.6 2006/01/23 11:48:25 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1052,6 +1052,16 @@ test string-12.19 {string range, bytearray object} {
test string-12.20 {string range, out of bounds indices} {
string range \u00ff 0 1
} \u00ff
+test string-12.21 {string range, unicode, bug 1410553} {
+ set buf {}
+ foreach ch "\x00 \x03 \x41" {
+ append buf $ch
+ if {$ch == "\x03"} {
+ string length $buf
+ }
+ }
+ expr {[string range $buf end-1 end] eq "\x03\x41"}
+} 1
test string-13.1 {string repeat} {
list [catch {string repeat} msg] $msg