diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/namespace.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index 49ba1e9..f49c09b 100644 --- a/tests/namespace.test +++ b/tests/namespace.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: namespace.test,v 1.33 2004/08/27 09:18:15 dkf Exp $ +# RCS: @(#) $Id: namespace.test,v 1.34 2004/08/27 13:59:29 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -1019,11 +1019,11 @@ test namespace-34.1 {NamespaceWhichCmd, bad args} { list [catch {namespace which} msg] $msg } {1 {wrong # args: should be "namespace which ?-command? ?-variable? name"}} test namespace-34.2 {NamespaceWhichCmd, bad args} { - list [catch {namespace which -fred} msg] $msg -} {1 {wrong # args: should be "namespace which ?-command? ?-variable? name"}} -test namespace-34.3 {NamespaceWhichCmd, bad args} { - list [catch {namespace which -command} msg] $msg + list [catch {namespace which -fred x} msg] $msg } {1 {wrong # args: should be "namespace which ?-command? ?-variable? name"}} +test namespace-34.3 {NamespaceWhichCmd, single arg is always command name} { + namespace which -command +} {} test namespace-34.4 {NamespaceWhichCmd, bad args} { list [catch {namespace which a b} msg] $msg } {1 {wrong # args: should be "namespace which ?-command? ?-variable? name"}} |