diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-29 21:40:42 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-29 21:40:42 (GMT) |
commit | f32a30e09c8e10a9cad9028e8830694056f71d62 (patch) | |
tree | 086d76a57a761fc5a658ba42f358f506869efdd0 /tests/namespace.test | |
parent | fc1ced4682dfd72cfa8fc82268206e50522eff95 (diff) | |
download | tcl-f32a30e09c8e10a9cad9028e8830694056f71d62.zip tcl-f32a30e09c8e10a9cad9028e8830694056f71d62.tar.gz tcl-f32a30e09c8e10a9cad9028e8830694056f71d62.tar.bz2 |
* generic/tclNamesp.c (EnsembleImplementationCmd):
* tests/namespace.test (47.7-8): reverted a wrong "optimisation"
that completely broke snit; added two tests.
Diffstat (limited to 'tests/namespace.test')
-rw-r--r-- | tests/namespace.test | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index 2bc0f04..a655c9c 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.59 2006/10/23 22:49:26 msofer Exp $ +# RCS: @(#) $Id: namespace.test,v 1.60 2006/10/29 21:40:43 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -1889,6 +1889,24 @@ test namespace-47.6 {ensemble: unknown handler} { while parsing result of ensemble unknown subcommand handler invoked from within "foo bar"}} +test namespace-47.7 {ensemble: unknown handler, commands with spaces} { + namespace ensemble create -command foo -unknown bar + proc bar {args} { + list ::set ::x [join $args |] + } + set result [foo {one two three}] + rename foo {} + set result +} {::foo|one two three} +test namespace-47.8 {ensemble: unknown handler, commands with spaces} { + namespace ensemble create -command foo -unknown {bar boo} + proc bar {args} { + list ::set ::x [join $args |] + } + set result [foo {one two three}] + rename foo {} + set result +} {boo|::foo|one two three} test namespace-48.1 {ensembles and namespace import: unknown handler} { namespace eval foo { |