summaryrefslogtreecommitdiffstats
path: root/tests/cmdIL.test
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-12-23 17:52:32 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-12-23 17:52:32 (GMT)
commitf762a775b0f50b12a52f497f0cc0078e0be159f5 (patch)
tree4afa2eb51b375de76ce881c9f8763a3403f55837 /tests/cmdIL.test
parent1878a74ad0e7c4be1d9f7a27850905e57054e03d (diff)
downloadtcl-f762a775b0f50b12a52f497f0cc0078e0be159f5.zip
tcl-f762a775b0f50b12a52f497f0cc0078e0be159f5.tar.gz
tcl-f762a775b0f50b12a52f497f0cc0078e0be159f5.tar.bz2
* generic/tclCmdIL.c: speed patch for lsort [Patch 1856994].
Diffstat (limited to 'tests/cmdIL.test')
-rw-r--r--tests/cmdIL.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index e0676a2..0be7f19 100644
--- a/tests/cmdIL.test
+++ b/tests/cmdIL.test
@@ -8,7 +8,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: cmdIL.test,v 1.35 2007/12/13 15:26:06 dgp Exp $
+# RCS: @(#) $Id: cmdIL.test,v 1.36 2007/12/23 17:52:34 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -175,6 +175,9 @@ test cmdIL-3.3 {SortCompare procedure, -index option} {
} {1 {element 2 missing from sublist "20 10"}}
test cmdIL-3.4 {SortCompare procedure, -index option} {
list [catch {lsort -integer -index 2 "{a b c} \\\{"} msg] $msg
+} {1 {expected integer but got "c"}}
+test cmdIL-3.4.1 {SortCompare procedure, -index option} {
+ list [catch {lsort -integer -index 2 "{1 2 3} \\\{"} msg] $msg
} {1 {unmatched open brace in list}}
test cmdIL-3.5 {SortCompare procedure, -index option} {
list [catch {lsort -integer -index 2 {{20 10 13} {15}}} msg] $msg