diff options
author | hobbs <hobbs@noemail.net> | 2003-02-11 21:54:38 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2003-02-11 21:54:38 (GMT) |
commit | 4303b2b1f07d938bdc19fa587962a9ee0e0eb75b (patch) | |
tree | 0d749ad255e3fcc6ef1ada93e00ad67966ab069e /tests | |
parent | bba8f3a10d4c7573a4a2afd0df02f6d196f82126 (diff) | |
download | tcl-4303b2b1f07d938bdc19fa587962a9ee0e0eb75b.zip tcl-4303b2b1f07d938bdc19fa587962a9ee0e0eb75b.tar.gz tcl-4303b2b1f07d938bdc19fa587962a9ee0e0eb75b.tar.bz2 |
* tests/lsearch.test:
* generic/tclCmdIL.c (Tcl_LsearchObjCmd): protect against the case
that lsearch -regepx list and pattern objects are equal.
FossilOrigin-Name: 1c9153d6ed5a555b2631c221bbbea9d1834007cb
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lsearch.test | 7 |
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} |