summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-02-11 21:54:38 (GMT)
committerhobbs <hobbs>2003-02-11 21:54:38 (GMT)
commit5ea88a91277fd9a447ef118a88f4699698335841 (patch)
tree0d749ad255e3fcc6ef1ada93e00ad67966ab069e /tests
parent736f0317f936ab603c6157110e8efdeb4a329a86 (diff)
downloadtcl-5ea88a91277fd9a447ef118a88f4699698335841.zip
tcl-5ea88a91277fd9a447ef118a88f4699698335841.tar.gz
tcl-5ea88a91277fd9a447ef118a88f4699698335841.tar.bz2
* tests/lsearch.test:
* generic/tclCmdIL.c (Tcl_LsearchObjCmd): protect against the case that lsearch -regepx list and pattern objects are equal.
Diffstat (limited to 'tests')
-rw-r--r--tests/lsearch.test7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lsearch.test b/tests/lsearch.test
index 887edb9..da6dce6 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.8 2002/03/06 11:28:08 dkf Exp $
+# RCS: @(#) $Id: lsearch.test,v 1.9 2003/02/11 21:54:48 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -341,6 +341,11 @@ test lsearch-14.1 {make sure no shimmering occurs} {
lsearch -start $x $x $x
} 0
+test lsearch-15.1 {lsearch -regexp shared object} {
+ set str a
+ lsearch -regexp $str $str
+} 0
+
# cleanup
catch {unset res}
catch {unset increasingIntegers}