summaryrefslogtreecommitdiffstats
path: root/tests/lsearch.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-02-27 16:01:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-02-27 16:01:46 (GMT)
commitc1eba82515c8db80a9098d7325d5940c203264e7 (patch)
treebefea6f4d22586dd3a2966059d784f1154032975 /tests/lsearch.test
parent4873c79487937794dde949506edacf8e5372b9f0 (diff)
downloadtcl-c1eba82515c8db80a9098d7325d5940c203264e7.zip
tcl-c1eba82515c8db80a9098d7325d5940c203264e7.tar.gz
tcl-c1eba82515c8db80a9098d7325d5940c203264e7.tar.bz2
Stop [lsearch -start 0 {} x] from crashing. [Bug #694232]
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 da6dce6..1beaaab 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.9 2003/02/11 21:54:48 hobbs Exp $
+# RCS: @(#) $Id: lsearch.test,v 1.10 2003/02/27 16:02:00 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -289,6 +289,10 @@ test lsearch-10.6 {binary search with offset} {
}
set res
} [concat -1 -1 [lrange $increasingIntegers 2 end]]
+test lsearch-10.7 {offset searching with an empty list} {
+ # Stop bug #694232 from reocurring
+ lsearch -start 0 {} x
+} -1
test lsearch-11.1 {negated searches} {
lsearch -not {a a a b a a a} a