summaryrefslogtreecommitdiffstats
path: root/tests/oo.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/oo.test')
-rw-r--r--tests/oo.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/oo.test b/tests/oo.test
index 6f8d5b5..55352c0 100644
--- a/tests/oo.test
+++ b/tests/oo.test
@@ -1753,6 +1753,19 @@ test oo-11.6.4 {OO: cleanup ReleaseClassContents() where class is mixed into one
rename obj1 {}
}
+test oo-11.7 {Bug 154f0982f2: createWithNamespace and an existing namespace} -setup {
+ oo::class create Aclass {
+ self export createWithNamespace
+ method ns {} {namespace current}
+ }
+} -body {
+ namespace eval test_oo117 {variable name [namespace current]}
+ list [Aclass createWithNamespace aInstance $test_oo117::name] [aInstance ns]
+} -returnCodes error -cleanup {
+ Aclass destroy
+ catch {namespace delete test_oo117}
+} -result {can't create namespace "::test_oo117": already exists}
+
test oo-12.1 {OO: filters} {
oo::class create Aclass
Aclass create Aobject