summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-03-24 21:54:10 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-03-24 21:54:10 (GMT)
commit658bfb282ce6fcba3cdf53d7448e7fa3e3fa05ac (patch)
tree12d7260cfbaa9c980ef4a74ae6c7798f7bb968cc /tests/namespace.test
parent82535bcc54c1cbe004c83beec30fc0cc27772fc2 (diff)
downloadtcl-658bfb282ce6fcba3cdf53d7448e7fa3e3fa05ac.zip
tcl-658bfb282ce6fcba3cdf53d7448e7fa3e3fa05ac.tar.gz
tcl-658bfb282ce6fcba3cdf53d7448e7fa3e3fa05ac.tar.bz2
Silly bug found originally by Damon Courtney. [922752]
Diffstat (limited to 'tests/namespace.test')
-rw-r--r--tests/namespace.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 72a2f33..4eb2854 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.23 2003/11/14 20:44:46 dgp Exp $
+# RCS: @(#) $Id: namespace.test,v 1.24 2004/03/24 21:54:32 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1389,6 +1389,13 @@ test namespace-44.4 {ensemble: errors} {
list [catch {namespace ensemble create -map {x {}}} msg] $msg
}
} {1 {ensemble subcommand implementations must be non-empty lists}}
+test namespace-44.5 {ensemble: errors} -setup {
+ namespace ensemble create -command foobar -subcommands {foobarcget foobarconfigure}
+} -body {
+ foobar foobarcon
+} -cleanup {
+ rename foobar {}
+} -returnCodes error -result {invalid command name "::foobarconfigure"}
test namespace-45.1 {ensemble: introspection} {
namespace eval ns {