summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-03-09 16:40:17 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-03-09 16:40:17 (GMT)
commit5810f3ae6446903fadc9860d8ba2c24515a448b3 (patch)
tree1df01fdc89f5c4aad4ca08ce188e0a2ea9a5b651 /tests
parent8f5385f1339e582fc7a451a31f304c8e2e290130 (diff)
downloadtcl-5810f3ae6446903fadc9860d8ba2c24515a448b3.zip
tcl-5810f3ae6446903fadc9860d8ba2c24515a448b3.tar.gz
tcl-5810f3ae6446903fadc9860d8ba2c24515a448b3.tar.bz2
Fix [Bug 1675116]
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdIL.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index 083d393..d8e956f 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.31 2007/03/02 17:56:27 dgp Exp $
+# RCS: @(#) $Id: cmdIL.test,v 1.32 2007/03/09 16:40:21 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -118,6 +118,10 @@ test cmdIL-1.27 {Tcl_LsortObjCmd procedure, returning indices} {
test cmdIL-1.28 {Tcl_LsortObjCmd procedure, returning indices} {
lsort -indices -unique -decreasing -real {1.2 34.5 34.5 5.6}
} {2 3 0}
+test cmdIL-1.29 {Tcl_LsortObjCmd procedure, loss of list rep during sorting} {
+ set l {1 2 3}
+ string length [lsort -command {apply {args {string length $::l}}} $l]
+} 5
# Can't think of any good tests for the MergeSort and MergeLists
# procedures, except a bunch of random lists to sort.