summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-08-15 16:16:07 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-08-15 16:16:07 (GMT)
commit0d3c1d543dacc770e745710b52d9ea1c4d1a28f2 (patch)
tree196d241c2207595808473d1f941a5b8ea9fe56ce /tests
parent9f5140ba5656acce75cbb9f43602fdd70cf400c6 (diff)
downloadtcl-0d3c1d543dacc770e745710b52d9ea1c4d1a28f2.zip
tcl-0d3c1d543dacc770e745710b52d9ea1c4d1a28f2.tar.gz
tcl-0d3c1d543dacc770e745710b52d9ea1c4d1a28f2.tar.bz2
* generic/tclProc.c (ProcWrongNumArgs): [Bug 3045010]: Make the
handling of passing the wrong number of arguments to [apply] somewhat less verbose when a lambda term is present.
Diffstat (limited to 'tests')
-rw-r--r--tests/apply.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/apply.test b/tests/apply.test
index 4e8eeea..5235de3 100644
--- a/tests/apply.test
+++ b/tests/apply.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: apply.test,v 1.12.2.1 2009/10/29 17:21:17 dgp Exp $
+# RCS: @(#) $Id: apply.test,v 1.12.2.2 2010/08/15 16:16:07 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.2
@@ -104,12 +104,12 @@ test apply-4.1 {error in arguments to lambda expression} {
set lambda [list x {set x 1}]
set res [catch {apply $lambda} msg]
list $res $msg
-} {1 {wrong # args: should be "apply {x {set x 1}} x"}}
+} {1 {wrong # args: should be "apply lambdaExpr x"}}
test apply-4.2 {error in arguments to lambda expression} {
set lambda [list x {set x 1}]
set res [catch {apply $lambda a b} msg]
list $res $msg
-} {1 {wrong # args: should be "apply {x {set x 1}} x"}}
+} {1 {wrong # args: should be "apply lambdaExpr x"}}
test apply-4.3 {error in arguments to lambda expression} {
set lambda [list x {set x 1}]
interp alias {} foo {} ::apply $lambda