summaryrefslogtreecommitdiffstats
path: root/tests/cmdIL.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-09-26 19:12:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-09-26 19:12:35 (GMT)
commit7a8e8db83501823dbe441944d6107f249accb2e8 (patch)
tree4859b8e11141ef3c9d5811e4af3d498899bda4d5 /tests/cmdIL.test
parenta3ab25966e8164aca53edb5ff3ba04d0627f25ce (diff)
downloadtcl-7a8e8db83501823dbe441944d6107f249accb2e8.zip
tcl-7a8e8db83501823dbe441944d6107f249accb2e8.tar.gz
tcl-7a8e8db83501823dbe441944d6107f249accb2e8.tar.bz2
TIP #323 IMPLEMENTATION (partial)
* doc/lassign.n: Revise [lassign] to accept zero variable names. * generic/tclCmdIL.c: * tests/cmdIL.test:
Diffstat (limited to 'tests/cmdIL.test')
-rw-r--r--tests/cmdIL.test14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index ca9377a..01fc09e 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.40 2008/09/10 13:50:05 dkf Exp $
+# RCS: @(#) $Id: cmdIL.test,v 1.41 2008/09/26 19:12:42 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -438,10 +438,10 @@ test cmdIL-5.5 {lsort with list style index and sharing} -body {
# Compiled version
test cmdIL-6.1 {lassign command syntax} -returnCodes error -body {
apply {{} { lassign }}
-} -result {wrong # args: should be "lassign list varName ?varName ...?"}
-test cmdIL-6.2 {lassign command syntax} -returnCodes error -body {
+} -result {wrong # args: should be "lassign list ?varName ...?"}
+test cmdIL-6.2 {lassign command syntax} {
apply {{} { lassign x }}
-} -result {wrong # args: should be "lassign list varName ?varName ...?"}
+} x
test cmdIL-6.3 {lassign command} -body {
apply {{} {
set x FAIL
@@ -534,13 +534,13 @@ test cmdIL-6.13 {lassign command syntax} -returnCodes error -body {
set lassign lassign
$lassign
}}
-} -result {wrong # args: should be "lassign list varName ?varName ...?"}
-test cmdIL-6.14 {lassign command syntax} -returnCodes error -body {
+} -result {wrong # args: should be "lassign list ?varName ...?"}
+test cmdIL-6.14 {lassign command syntax} {
apply {{} {
set lassign lassign
$lassign x
}}
-} -result {wrong # args: should be "lassign list varName ?varName ...?"}
+} x
test cmdIL-6.15 {lassign command} -body {
apply {{} {
set lassign lassign