summaryrefslogtreecommitdiffstats
path: root/tests/lsearch.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-12-09 14:13:00 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-12-09 14:13:00 (GMT)
commit4fdc73733207bd69ff17bc8c150e026e35accb5b (patch)
treec9b1f7c208357166b5f3fd3a3785d43c70f45f3b /tests/lsearch.test
parent9a0b2f10b4c17659126642ca9fd595b75464d292 (diff)
downloadtcl-4fdc73733207bd69ff17bc8c150e026e35accb5b.zip
tcl-4fdc73733207bd69ff17bc8c150e026e35accb5b.tar.gz
tcl-4fdc73733207bd69ff17bc8c150e026e35accb5b.tar.bz2
Fix [Bug 1374778]
Diffstat (limited to 'tests/lsearch.test')
-rw-r--r--tests/lsearch.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/lsearch.test b/tests/lsearch.test
index a54c1a0..fcaa85b 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.17 2005/11/29 10:32:56 dkf Exp $
+# RCS: @(#) $Id: lsearch.test,v 1.18 2005/12/09 14:13:01 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -317,6 +317,18 @@ test lsearch-10.7 {offset searching with an empty list} {
# Stop bug #694232 from reocurring
lsearch -start 0 {} x
} -1
+test lsearch-10.8 {offset searching past the end of the list} {
+ # Stop [Bug 1374778] from reoccurring
+ lsearch -start 10 {a b c} c
+} -1
+test lsearch-10.9 {offset searching past the end of the list} {
+ # Stop [Bug 1374778] from reoccurring
+ lsearch -start 10 -all {a b c} c
+} {}
+test lsearch-10.10 {offset searching past the end of the list} {
+ # Stop [Bug 1374778] from reoccurring
+ lsearch -start 10 -inline {a b c} c
+} {}
test lsearch-11.1 {negated searches} {
lsearch -not {a a a b a a a} a