summaryrefslogtreecommitdiffstats
path: root/tests/cmdIL.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-11-09 16:11:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-11-09 16:11:46 (GMT)
commit50372ddbf9e9b93ddf9b64cad6b9380d5a542c2d (patch)
treefc51c4267eadb24af3f968b7645c15fd549e2c81 /tests/cmdIL.test
parentffd8329a24b35299d0efa9610743cc016203dc84 (diff)
downloadtcl-50372ddbf9e9b93ddf9b64cad6b9380d5a542c2d.zip
tcl-50372ddbf9e9b93ddf9b64cad6b9380d5a542c2d.tar.gz
tcl-50372ddbf9e9b93ddf9b64cad6b9380d5a542c2d.tar.bz2
Optimize for the unshared case.
Diffstat (limited to 'tests/cmdIL.test')
-rw-r--r--tests/cmdIL.test10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index c2fd650..87af599 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.29 2006/11/09 15:19:03 dkf Exp $
+# RCS: @(#) $Id: cmdIL.test,v 1.30 2006/11/09 16:11:46 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -733,8 +733,12 @@ test cmdIL-7.2 {lreverse command} -body {
test cmdIL-7.3 {lreverse command} -body {
lreverse "not \{a list"
} -returnCodes error -result {unmatched open brace in list}
-test cmdIL-7.4 {lreverse command} {
- lreverse {a b {c d} e f}
+test cmdIL-7.4 {lreverse command - shared object} {
+ set x {a b {c d} e f}
+ lreverse $x
+} {f e {c d} b a}
+test cmdIL-7.5 {lreverse command - unshared object} {
+ lreverse [list a b {c d} e f]
} {f e {c d} b a}
# cleanup