summaryrefslogtreecommitdiffstats
path: root/tests/lsearch.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-11-29 10:32:56 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-11-29 10:32:56 (GMT)
commitee5f76eeacd881cb235705efa89282157cceeed4 (patch)
tree2d0b4b24895eebe7b99a38c593b4633376d1807a /tests/lsearch.test
parentc530770762d3eff1b6450ecedfc1cc3e844fb73b (diff)
downloadtcl-ee5f76eeacd881cb235705efa89282157cceeed4.zip
tcl-ee5f76eeacd881cb235705efa89282157cceeed4.tar.gz
tcl-ee5f76eeacd881cb235705efa89282157cceeed4.tar.bz2
Fix [Bug 1366683]
Diffstat (limited to 'tests/lsearch.test')
-rw-r--r--tests/lsearch.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lsearch.test b/tests/lsearch.test
index 0155bdd..a54c1a0 100644
--- a/tests/lsearch.test
+++ b/tests/lsearch.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: lsearch.test,v 1.16 2005/06/01 11:00:35 dkf Exp $
+# RCS: @(#) $Id: lsearch.test,v 1.17 2005/11/29 10:32:56 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -382,6 +382,10 @@ test lsearch-16.1 {lsearch -regexp shared object} {
set str a
lsearch -regexp $str $str
} 0
+# Bug 1366683
+test lsearch-16.2 {lsearch -regexp allows internal backrefs} {
+ lsearch -regexp {a aa b} {(.)\1}
+} 1
test lsearch-17.1 {lsearch -index option, basic functionality} {
lsearch -index 1 {{a c} {a b} {a a}} a