diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2001-06-12 08:07:37 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2001-06-12 08:07:37 (GMT) |
| commit | 90f0af91d53307f477d2cd9bc2ec2431529d58e6 (patch) | |
| tree | d0d7eaa0cc57a266b613765f972ca573df84eade /tests/regexp.test | |
| parent | 592208d5f3caffefdb576d545aff544d790f6cc8 (diff) | |
| download | tcl-90f0af91d53307f477d2cd9bc2ec2431529d58e6.zip tcl-90f0af91d53307f477d2cd9bc2ec2431529d58e6.tar.gz tcl-90f0af91d53307f477d2cd9bc2ec2431529d58e6.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 |
