summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-08-27 13:59:27 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-08-27 13:59:27 (GMT)
commited3d330d86447c20841d39a0f0e0e57a2bad3ecd (patch)
treea535782e7affb360e13dd53ec1766ebaaf99ec1c /tests
parentfe1bd67c3db19045cffd0e2f58d3cdc02ebaaf90 (diff)
downloadtcl-ed3d330d86447c20841d39a0f0e0e57a2bad3ecd.zip
tcl-ed3d330d86447c20841d39a0f0e0e57a2bad3ecd.tar.gz
tcl-ed3d330d86447c20841d39a0f0e0e57a2bad3ecd.tar.bz2
Make [namespace which] use newer option parsing code for more flexibility.
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test10
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"}}