diff options
author | dkf <dkf@noemail.net> | 2001-05-14 08:57:25 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2001-05-14 08:57:25 (GMT) |
commit | db0b803d5b80d4606df59f96b8a454376a2e6e59 (patch) | |
tree | 1146b72baa96e51760dd2a93cdd4a6c09b080be0 /tests/string.test | |
parent | 837ff2820206e2f0ec4af4d4d0ceed42b9a9ab59 (diff) | |
download | tcl-db0b803d5b80d4606df59f96b8a454376a2e6e59.zip tcl-db0b803d5b80d4606df59f96b8a454376a2e6e59.tar.gz tcl-db0b803d5b80d4606df59f96b8a454376a2e6e59.tar.bz2 |
Negative start index to [string first] caused offset return value (Bug 423581)
FossilOrigin-Name: d8f5293bb01a92e4d23206a6906260aeefca4ed9
Diffstat (limited to 'tests/string.test')
-rw-r--r-- | tests/string.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test index aad463e..b869206 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.28 2001/04/06 10:50:00 dkf Exp $ +# RCS: @(#) $Id: string.test,v 1.29 2001/05/14 08:57:26 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -197,6 +197,9 @@ test string-4.12 {string first, start index} { test string-4.13 {string first, start index} { string first \u7266 abc\u7266x end-2 } 3 +test string-4.14 {string first, negative start index} { + string first b abc -1 +} 1 test string-5.1 {string index} { list [catch {string index} msg] $msg |