summaryrefslogtreecommitdiffstats
path: root/tests/init.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/init.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/init.test')
-rw-r--r--tests/init.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/init.test b/tests/init.test
index 7c5a159..46f4429 100644
--- a/tests/init.test
+++ b/tests/init.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: init.test,v 1.6 2000/04/10 17:19:00 ericm Exp $
+# RCS: @(#) $Id: init.test,v 1.7 2000/05/03 00:14:36 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -78,13 +78,13 @@ test init-2.0 {load parray - stage 1} {
set ret [catch {namespace eval ::tcltest {parray}} error]
rename parray {} ; # remove it, for the next test - that should not fail.
list $ret $error
-} {1 {no value given for parameter "a" to "parray"}}
+} {1 {wrong # args: should be "parray a ?pattern?"}}
test init-2.1 {load parray - stage 2} {
set ret [catch {namespace eval ::tcltest {parray}} error]
list $ret $error
-} {1 {no value given for parameter "a" to "parray"}}
+} {1 {wrong # args: should be "parray a ?pattern?"}}
auto_reset
@@ -139,7 +139,7 @@ test init-2.8 {load http::geturl (package)} {
# removing it, for the next test. should not fail.
rename ::http::geturl {} ;
list $ret $error
-} {1 {no value given for parameter "url" to "http:::geturl"}}
+} {1 {wrong # args: should be "http:::geturl url args"}}
test init-3.0 {random stuff in the auto_index, should still work} {