diff options
author | hobbs <hobbs> | 1999-10-21 02:17:57 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-10-21 02:17:57 (GMT) |
commit | f8731757a44ea7d7862aca7eb78ef21303b70e63 (patch) | |
tree | 38491f28fb6d7efc3025d8d5385a48876d471092 /tests/string.test | |
parent | 1ed0bec0caaa8524e4f1ced4e7c0718322ed44dc (diff) | |
download | tcl-f8731757a44ea7d7862aca7eb78ef21303b70e63.zip tcl-f8731757a44ea7d7862aca7eb78ef21303b70e63.tar.gz tcl-f8731757a44ea7d7862aca7eb78ef21303b70e63.tar.bz2 |
new test cases
Diffstat (limited to 'tests/string.test')
-rw-r--r-- | tests/string.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test index 59cacae..1e25073 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.20 1999/08/10 05:09:20 hobbs Exp $ +# RCS: @(#) $Id: string.test,v 1.21 1999/10/21 02:17:57 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -244,6 +244,11 @@ test string-5.15 {string index, bytearray object} { set i2 [string index $b 1] string compare $i1 $i2 } 0 +test string-5.16 {string index, bytearray object with string obj shimmering} { + set str "0123456789\x00 abcdedfghi" + binary scan $str H* dump + string compare [string index $str 10] \x00 +} 0 proc largest_int {} { # This will give us what the largest valid int on this machine is, |