summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorstanton <stanton>1999-07-09 02:11:56 (GMT)
committerstanton <stanton>1999-07-09 02:11:56 (GMT)
commit196bfbe531ff0bb8488dde587ee9ffc46a8ffe55 (patch)
tree87cc6cef2a28b7a8e79c5e8fae1e7a4f71f4cffe /tests
parent96da55129351108de4a053ec7b8cdfa272f727ee (diff)
downloadtcl-196bfbe531ff0bb8488dde587ee9ffc46a8ffe55.zip
tcl-196bfbe531ff0bb8488dde587ee9ffc46a8ffe55.tar.gz
tcl-196bfbe531ff0bb8488dde587ee9ffc46a8ffe55.tar.bz2
* tests/string.test:
* generic/tclCmdMZ.c: Fixed bug in string range bounds checking code.
Diffstat (limited to 'tests')
-rw-r--r--tests/string.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index 4cee4d3..951fd46 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -11,7 +11,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.18 1999/07/01 17:36:19 jenn Exp $
+# RCS: @(#) $Id: string.test,v 1.19 1999/07/09 02:11:56 stanton Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -835,6 +835,9 @@ test string-12.19 {string range, bytearray object} {
set r2 [string range $b 1 6]
string compare $r1 $r2
} 0
+test string-12.20 {string range, out of bounds indices} {
+ string range \u00ff 0 1
+} \u00ff
test string-13.1 {string repeat} {
list [catch {string repeat} msg] $msg