summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-11-22 16:32:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-11-22 16:32:53 (GMT)
commit42acb79e42e426c61ca95ebfac491b77ac807f29 (patch)
tree9c523b89ae881b4aedf8e1ece51924f330dc0481 /tests
parent504aaad8ad50f859a3898bbc0f7e098a035a2479 (diff)
downloadtcl-42acb79e42e426c61ca95ebfac491b77ac807f29.zip
tcl-42acb79e42e426c61ca95ebfac491b77ac807f29.tar.gz
tcl-42acb79e42e426c61ca95ebfac491b77ac807f29.tar.bz2
Flag shimmering bug found in [string range].
Diffstat (limited to 'tests')
-rw-r--r--tests/string.test7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index e421738..f8a14e9 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.67 2007/11/20 20:43:13 dkf Exp $
+# RCS: @(#) $Id: string.test,v 1.68 2007/11/22 16:32:54 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1131,6 +1131,11 @@ test string-12.21 {string range, regenerates correct reps, bug 1410553} {
binary scan $rxCRC "H*" rxCRC_hex
list $input_hex $rxBuffer_hex $rxCRC_hex
} {000341 000341 0341}
+test string-12.22 {string range, shimmering binary/index} {
+ set s 0000000001
+ binary scan $s a* x
+ string range $s $s end
+} 000000001
test string-13.1 {string repeat} {
list [catch {string repeat} msg] $msg