diff options
author | dgp <dgp@users.sourceforge.net> | 2013-02-21 02:54:05 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-02-21 02:54:05 (GMT) |
commit | bcf9541b4ce95bf706927ad15cab723e849e54aa (patch) | |
tree | d958745c68f1996c37ebd2fb5b79d36e437a2d56 /tests/namespace.test | |
parent | f85e814a8bfeecccb8dbf087ac826c48b2e55444 (diff) | |
download | tcl-bcf9541b4ce95bf706927ad15cab723e849e54aa.zip tcl-bcf9541b4ce95bf706927ad15cab723e849e54aa.tar.gz tcl-bcf9541b4ce95bf706927ad15cab723e849e54aa.tar.bz2 |
added testbug_3605447
Diffstat (limited to 'tests/namespace.test')
-rw-r--r-- | tests/namespace.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index 166ff00..cac547a 100644 --- a/tests/namespace.test +++ b/tests/namespace.test @@ -1056,6 +1056,14 @@ test namespace-26.7 {NamespaceExportCmd, -clear resets export list} { } list [lsort [info commands test_ns_2::*]] [test_ns_2::cmd4 hello] } [list [lsort {::test_ns_2::cmd4 ::test_ns_2::cmd1 ::test_ns_2::cmd3}] {cmd4: hello}] +test namespace-26.8 {NamespaceExportCmd, -clear resets export list} { + catch {namespace delete foo} + namespace eval foo { + namespace export x + namespace export -clear + } + list [namespace eval foo namespace export] [namespace delete foo] +} {{} {}} test namespace-27.1 {NamespaceForgetCmd, no args} { catch {eval namespace delete [namespace children :: test_ns_*]} |