summaryrefslogtreecommitdiffstats
path: root/tests/lsearch.test
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2003-02-27 16:01:46 (GMT)
committerdkf <dkf@noemail.net>2003-02-27 16:01:46 (GMT)
commit1a726fa2e90a5b6ff3c21a500a84a7e19729517b (patch)
treebefea6f4d22586dd3a2966059d784f1154032975 /tests/lsearch.test
parent44657d5b818ceddf00e6531a2241c2265bd644f2 (diff)
downloadtcl-1a726fa2e90a5b6ff3c21a500a84a7e19729517b.zip
tcl-1a726fa2e90a5b6ff3c21a500a84a7e19729517b.tar.gz
tcl-1a726fa2e90a5b6ff3c21a500a84a7e19729517b.tar.bz2
Stop [lsearch -start 0 {} x] from crashing. [Bug #694232]
FossilOrigin-Name: 97f3eb7e5d28387583422cc6f4ad2fb8047e938c
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