diff options
author | hobbs <hobbs> | 2005-05-11 00:51:27 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-05-11 00:51:27 (GMT) |
commit | 46cebd1d1935554f6878e109235fae5ba1dbacf5 (patch) | |
tree | af078bfb0b6e3f7cf99be6ad9b8eb8b4504bb3c7 /tests/string.test | |
parent | 2bfc68501866a3efdbc3da722c3968f8ce0004ec (diff) | |
download | tcl-46cebd1d1935554f6878e109235fae5ba1dbacf5.zip tcl-46cebd1d1935554f6878e109235fae5ba1dbacf5.tar.gz tcl-46cebd1d1935554f6878e109235fae5ba1dbacf5.tar.bz2 |
* tests/string.test: string-10.[21-30]
* generic/tclCmdMZ.c (Tcl_StringObjCmd): add extra checks to
prevent possible UMR in unichar cmp function for string map.
Diffstat (limited to 'tests/string.test')
-rw-r--r-- | tests/string.test | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test index 93939df..1008c42 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.47 2005/05/10 18:35:24 kennykb Exp $ +# RCS: @(#) $Id: string.test,v 1.48 2005/05/11 00:51:28 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -810,6 +810,36 @@ test string-10.21 {string map, nasty sharing crash from [Bug 1018562]} { set a {a b} string map $a $a } {b b} +test string-10.21 {string map, ABR checks} { + string map {longstring foob} long +} long +test string-10.22 {string map, ABR checks} { + string map {long foob} long +} foob +test string-10.23 {string map, ABR checks} { + string map {lon foob} long +} foobg +test string-10.24 {string map, ABR checks} { + string map {lon foob} longlo +} foobglo +test string-10.25 {string map, ABR checks} { + string map {lon foob} longlon +} foobgfoob +test string-10.26 {string map, ABR checks} { + string map {longstring foob longstring bar} long +} long +test string-10.27 {string map, ABR checks} { + string map {long foob longstring bar} long +} foob +test string-10.28 {string map, ABR checks} { + string map {lon foob longstring bar} long +} foobg +test string-10.29 {string map, ABR checks} { + string map {lon foob longstring bar} longlo +} foobglo +test string-10.30 {string map, ABR checks} { + string map {lon foob longstring bar} longlon +} foobgfoob test string-11.1 {string match, too few args} { list [catch {string match a} msg] $msg |