summaryrefslogtreecommitdiffstats
path: root/tests/lrange.test
diff options
context:
space:
mode:
authorferrieux <ferrieux@users.sourceforge.net>2009-02-22 17:45:20 (GMT)
committerferrieux <ferrieux@users.sourceforge.net>2009-02-22 17:45:20 (GMT)
commit2f7164a07ccf7f1803f0f2a169bbc07169fd7084 (patch)
tree9a010fa568b02df4b2938a18a6ec406cae1fb41a /tests/lrange.test
parent300db4575ea04674f1f3ec8a0659075db7d18ac3 (diff)
downloadtcl-2f7164a07ccf7f1803f0f2a169bbc07169fd7084.zip
tcl-2f7164a07ccf7f1803f0f2a169bbc07169fd7084.tar.gz
tcl-2f7164a07ccf7f1803f0f2a169bbc07169fd7084.tar.bz2
Revert commits of 20080723. Those were speed tests, that are inherently brittle.
Diffstat (limited to 'tests/lrange.test')
-rw-r--r--tests/lrange.test8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/lrange.test b/tests/lrange.test
index f218d38..6f8f88d 100644
--- a/tests/lrange.test
+++ b/tests/lrange.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: lrange.test,v 1.11 2008/08/09 00:16:06 das Exp $
+# RCS: @(#) $Id: lrange.test,v 1.12 2009/02/22 17:45:21 ferrieux Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -66,12 +66,6 @@ test lrange-1.15 {range of list elements} {
test lrange-1.16 {list element quoting} {
lrange {[append a .b]} 0 end
} {{[append} a .b\]}
-test lrange-1.17 {lrange in-place speed} -body {
- set l [lrepeat 1000000 0]
- set t1 [lindex [time {set l [lrange $l 0 end-1]}] 0]
- set t2 [lindex [time {set l [lrange $l[unset l] 0 end-1]}] 0]
- expr {($t1/$t2)>100}
-} -result 1 -cleanup {unset l t1 t2}
test lrange-2.1 {error conditions} {
list [catch {lrange a b} msg] $msg
} {1 {wrong # args: should be "lrange list first last"}}