diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2001-06-12 08:07:37 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2001-06-12 08:07:37 (GMT) |
commit | 618765e259dedad64023f5f750afe080cb50e1c4 (patch) | |
tree | d0d7eaa0cc57a266b613765f972ca573df84eade /tests/regexp.test | |
parent | 4f211efb0420a08b1bde5ecf7512c41ffbaac25a (diff) | |
download | tcl-618765e259dedad64023f5f750afe080cb50e1c4.zip tcl-618765e259dedad64023f5f750afe080cb50e1c4.tar.gz tcl-618765e259dedad64023f5f750afe080cb50e1c4.tar.bz2 |
Fix for bug #219232 (submatch errors with regexp -all -inline -indices)
Diffstat (limited to 'tests/regexp.test')
-rw-r--r-- | tests/regexp.test | 5 |
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 |