summaryrefslogtreecommitdiffstats
path: root/tests/regexp.test
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2001-06-12 08:07:36 (GMT)
committerdkf <dkf@noemail.net>2001-06-12 08:07:36 (GMT)
commit6579b79a0657624dda827e21a0d8eed64fdfaa00 (patch)
treed0d7eaa0cc57a266b613765f972ca573df84eade /tests/regexp.test
parentbe583e207ce3bc7e1d67b3d6ae08a0d506ee9c59 (diff)
downloadtcl-6579b79a0657624dda827e21a0d8eed64fdfaa00.zip
tcl-6579b79a0657624dda827e21a0d8eed64fdfaa00.tar.gz
tcl-6579b79a0657624dda827e21a0d8eed64fdfaa00.tar.bz2
Fix for bug #219232 (submatch errors with regexp -all -inline -indices)
FossilOrigin-Name: f2e4ec3026f4c29c17aa6c425cd9b2fa36a85cc0
Diffstat (limited to 'tests/regexp.test')
-rw-r--r--tests/regexp.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/regexp.test b/tests/regexp.test
index fc2863c..11b72bd 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.15 2001/03/28 02:30:06 hobbs Exp $
+# RCS: @(#) $Id: regexp.test,v 1.16 2001/06/12 08:07:37 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -529,6 +529,9 @@ test regexp-18.10 {regexp -all} {
test regexp-18.11 {regexp -all} {
regexp -all -inline {^a} aaaa
} {a}
+test regexp-18.12 {regexp -all -inline -indices} {
+ regexp -all -inline -indices a(b(c)d|e(f)g)h abcdhaefgh
+} {{0 4} {1 3} {2 2} {-1 -1} {5 9} {6 8} {-1 -1} {7 7}}
test regexp-19.1 {regsub null replacement} {
regsub -all {@} {@hel@lo@} "\0a\0" result