diff options
author | hobbs <hobbs> | 2001-09-19 18:09:02 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-09-19 18:09:02 (GMT) |
commit | eaecbc2b998c46334ae14212a09eadfce713b4ab (patch) | |
tree | f27d60fb1e12f8a3ec8176a4bd3a575cc88a085f /tests | |
parent | 61c95ccf50b02fed3a084cc47fa5b10e3c6e753a (diff) | |
download | tcl-eaecbc2b998c46334ae14212a09eadfce713b4ab.zip tcl-eaecbc2b998c46334ae14212a09eadfce713b4ab.tar.gz tcl-eaecbc2b998c46334ae14212a09eadfce713b4ab.tar.bz2 |
test case for bug #461322
Diffstat (limited to 'tests')
-rw-r--r-- | tests/regexp.test | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/regexp.test b/tests/regexp.test index 11b72bd..e19f771 100644 --- a/tests/regexp.test +++ b/tests/regexp.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: regexp.test,v 1.16 2001/06/12 08:07:37 dkf Exp $ +# RCS: @(#) $Id: regexp.test,v 1.17 2001/09/19 18:09:02 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -538,6 +538,15 @@ test regexp-19.1 {regsub null replacement} { list $result [string length $result] } "\0a\0hel\0a\0lo\0a\0 14" +test regexp-20.1 {regsub shared object shimmering} { + # Bug #461322 + set a abcdefghijklmnopqurstuvwxyz + set b $a + set c abcdefghijklmnopqurstuvwxyz0123456789 + regsub $a $c $b d + list $d [string length $d] [string bytelength $d] +} [list abcdefghijklmnopqurstuvwxyz0123456789 37 37] + # cleanup ::tcltest::cleanupTests return |