summaryrefslogtreecommitdiffstats
path: root/tests/compile.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-05-03 00:14:35 (GMT)
committerhobbs <hobbs>2000-05-03 00:14:35 (GMT)
commit4c8a9811534a3b4a2a4f18a8b336e32f09924f99 (patch)
tree5628ff7c339091fc70acb302e1df79ed6a1940e9 /tests/compile.test
parentc976f22afb9a851655b7dca553a0ff0dff4175ac (diff)
downloadtcl-4c8a9811534a3b4a2a4f18a8b336e32f09924f99.zip
tcl-4c8a9811534a3b4a2a4f18a8b336e32f09924f99.tar.gz
tcl-4c8a9811534a3b4a2a4f18a8b336e32f09924f99.tar.bz2
* tests/compile.test:
* tests/init.test: * tests/proc.test: * tests/proc-old.test: * tests/rename.test: * generic/tclProc.c: reworked error return for procedures with incorrect args to be like the C Tcl_WrongNumArgs, where a "wrong # args: ..." message is printed out with the args list.
Diffstat (limited to 'tests/compile.test')
-rw-r--r--tests/compile.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/compile.test b/tests/compile.test
index e231ffe..7a26031 100644
--- a/tests/compile.test
+++ b/tests/compile.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: compile.test,v 1.8 2000/04/10 17:18:58 ericm Exp $
+# RCS: @(#) $Id: compile.test,v 1.9 2000/05/03 00:14:36 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -44,8 +44,7 @@ test compile-1.1 {TclCompileString: look up cmds in proc ns, not current ns} {
test compile-1.2 {TclCompileString, error result is reset if TclGetLong determines word isn't an integer} {
proc p {x} {info commands 3m}
list [catch {p} msg] $msg
-} {1 {no value given for parameter "x" to "p"}}
-
+} {1 {wrong # args: should be "p x"}}
test compile-2.1 {TclCompileDollarVar: global scalar name with ::s} {
catch {unset x}
set x 123