summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2006-11-09 15:19:01 (GMT)
committerdkf <dkf@noemail.net>2006-11-09 15:19:01 (GMT)
commite579293a84ce590beb69b1bb5cb2061a69897a08 (patch)
treec99380de0e89bc86e1accd8eef22508a2650412a /tests
parent0110bf18c766539c78ab0b65ecf9bff3b24a6919 (diff)
downloadtcl-e579293a84ce590beb69b1bb5cb2061a69897a08.zip
tcl-e579293a84ce590beb69b1bb5cb2061a69897a08.tar.gz
tcl-e579293a84ce590beb69b1bb5cb2061a69897a08.tar.bz2
Implemented [lreverse] from TIP#272
FossilOrigin-Name: adc8734872c1f5f4245f246de107d92b31ff7a38
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdIL.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index a4099a8..c2fd650 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.28 2006/10/09 19:15:44 msofer Exp $
+# RCS: @(#) $Id: cmdIL.test,v 1.29 2006/11/09 15:19:03 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -724,6 +724,19 @@ test cmdIL-6.26 {lassign command - shimmering protection} -body {
rename testLassign {}
}
+test cmdIL-7.1 {lreverse command} -body {
+ lreverse
+} -returnCodes error -result "wrong # args: should be \"lreverse list\""
+test cmdIL-7.2 {lreverse command} -body {
+ lreverse a b
+} -returnCodes error -result "wrong # args: should be \"lreverse list\""
+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}
+} {f e {c d} b a}
+
# cleanup
::tcltest::cleanupTests
return