summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-03-28 02:30:06 (GMT)
committerhobbs <hobbs>2001-03-28 02:30:06 (GMT)
commita21bda19f3e66a10cf4a9510060918de0d7db654 (patch)
treed0cf4f3c6c121b36006d123c75d742fb2b67bb7a /tests
parent7a503d88f6b5e708dd90ded74fef1f3bcdcae67f (diff)
downloadtcl-a21bda19f3e66a10cf4a9510060918de0d7db654.zip
tcl-a21bda19f3e66a10cf4a9510060918de0d7db654.tar.gz
tcl-a21bda19f3e66a10cf4a9510060918de0d7db654.tar.bz2
* tests/regexp.test (regexp-19.1):
* generic/tclCmdMZ.c (Tcl_RegsubObjCmd): fixed handling of nulls in subspec value.
Diffstat (limited to 'tests')
-rw-r--r--tests/regexp.test20
1 files changed, 5 insertions, 15 deletions
diff --git a/tests/regexp.test b/tests/regexp.test
index 63dbd31..fc2863c 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.14 2000/09/20 01:50:39 ericm Exp $
+# RCS: @(#) $Id: regexp.test,v 1.15 2001/03/28 02:30:06 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -530,21 +530,11 @@ test regexp-18.11 {regexp -all} {
regexp -all -inline {^a} aaaa
} {a}
+test regexp-19.1 {regsub null replacement} {
+ regsub -all {@} {@hel@lo@} "\0a\0" result
+ list $result [string length $result]
+} "\0a\0hel\0a\0lo\0a\0 14"
# cleanup
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-
-
-