summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-09-13 10:49:06 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-09-13 10:49:06 (GMT)
commit8cb023658d6e613c6a76db26b0b5568b6e0b2bb6 (patch)
treeed6601ca235b6f240172b0c9bc21eca657eb53b8 /tests
parente1dec685e9bda26a664969e11607fabc328c582c (diff)
downloadtcl-8cb023658d6e613c6a76db26b0b5568b6e0b2bb6.zip
tcl-8cb023658d6e613c6a76db26b0b5568b6e0b2bb6.tar.gz
tcl-8cb023658d6e613c6a76db26b0b5568b6e0b2bb6.tar.bz2
Fix [Bug 1026903] by storing what ensemble the ensemble is cached for.
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 7e5cd6d..6338316 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.36 2004/09/09 17:09:35 dgp Exp $
+# RCS: @(#) $Id: namespace.test,v 1.37 2004/09/13 10:49:19 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1879,6 +1879,17 @@ test namespace-48.3 {ensembles and namespace import: config} {
set result
} {::foo 1 {"boo" is not an ensemble command} 1 {unknown command "spong"}}
+test namespace-49.1 {ensemble subcommand caching} -body {
+ namespace ens cre -command a -map {b {lappend result 1}}
+ namespace ens cre -command c -map {b {lappend result 2}}
+ proc x {} {a b; c b; a b; c b}
+ x
+} -result {1 2 1 2} -cleanup {
+ rename a {}
+ rename c {}
+ rename x {}
+}
+
# cleanup
catch {rename cmd1 {}}
catch {unset l}