diff options
author | dgp <dgp@users.sourceforge.net> | 2016-06-28 22:30:18 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-06-28 22:30:18 (GMT) |
commit | 75a582f3570a03b8c517653637102c8baf987067 (patch) | |
tree | 9405168e88fadae774bff8ed265edeb3f236bfcc /tests | |
parent | 73124928ba9d5134012c0c7bdfcd02dcf876d7cf (diff) | |
parent | b28ae0fbb535cc3fbdeed6d11862f20014c4b28a (diff) | |
download | tcl-75a582f3570a03b8c517653637102c8baf987067.zip tcl-75a582f3570a03b8c517653637102c8baf987067.tar.gz tcl-75a582f3570a03b8c517653637102c8baf987067.tar.bz2 |
Route all ensemble rewrite activity through a few utility routines.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/namespace.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index 5c5783b..fc74d73 100644 --- a/tests/namespace.test +++ b/tests/namespace.test @@ -2928,6 +2928,22 @@ test namespace-53.10 {ensembles: nested rewrite} -setup { 0 {1 v}\ 1 {wrong # args: should be "ns v x z2 a2"}\ 0 {2 v v2}} +test namespace-53.11 {ensembles: nested rewrite} -setup { + namespace eval ns { + namespace export x + namespace eval x { + proc z2 {a1 a2} {list 2 $a1 $a2} + namespace export z* + namespace ensemble create -parameter p + } + namespace ensemble create + } +} -body { + list [catch {ns x 1 z2} msg] $msg +} -cleanup { + namespace delete ns + unset -nocomplain msg +} -result {1 {wrong # args: should be "ns x 1 z2 a2"}} test namespace-54.1 {leak on namespace deletion} -constraints {memory} \ -setup { |