From 93eab51bc542fed536c8b0a51a4ee3dbf82b53f4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 15 Jun 2010 02:10:41 -0500 Subject: fallback constructor still needs to set __INSTANCE__ properly --- t/24-nonmoose-moose-nonmoose.t | 6 ------ t/50-buggy-constructor-inlining.t | 2 -- 2 files changed, 8 deletions(-) (limited to 't') diff --git a/t/24-nonmoose-moose-nonmoose.t b/t/24-nonmoose-moose-nonmoose.t index faa6f6f..ef0ce88 100644 --- a/t/24-nonmoose-moose-nonmoose.t +++ b/t/24-nonmoose-moose-nonmoose.t @@ -68,10 +68,7 @@ Foo::Moose->meta->make_immutable; $foo = Foo::Moose::Sub->new(name => 'foomoosesub', foo2 => 'FOO2'); isa_ok($foo, 'Foo'); isa_ok($foo, 'Foo::Moose'); -TODO: { -local $TODO = 'nonmoose-moose-nonmoose inheritance doesn\'t quite work'; is($foo->foo, 'foomoosesub', 'got name from nonmoose constructor (immutable)'); -} is($foo->foo2, 'FOO2', 'got attribute value from moose constructor (immutable)'); $foo = Foo::Moose->new(name => 'foomoosesub', foo2 => 'FOO2'); isa_ok($foo, 'Foo'); @@ -93,10 +90,7 @@ Bar::Moose->meta->make_immutable; $bar = Bar::Moose::Sub->new(name => 'barmoosesub', bar2 => 'BAR2'); isa_ok($bar, 'Bar'); isa_ok($bar, 'Bar::Moose'); -TODO: { -local $TODO = 'nonmoose-moose-nonmoose inheritance doesn\'t quite work'; is($bar->bar, 'barmoosesub', 'got name from nonmoose constructor (immutable)'); -} is($bar->bar2, 'BAR2', 'got attribute value from moose constructor (immutable)'); $bar = Bar::Moose->new(name => 'barmoosesub', bar2 => 'BAR2'); isa_ok($bar, 'Bar'); diff --git a/t/50-buggy-constructor-inlining.t b/t/50-buggy-constructor-inlining.t index 591fae0..c72c7c8 100644 --- a/t/50-buggy-constructor-inlining.t +++ b/t/50-buggy-constructor-inlining.t @@ -26,9 +26,7 @@ my ($Foo, $Bar, $Baz) = (0, 0, 0); } Baz->new; -{ local $TODO = "need to call custom constructor for other classes, not Moose::Object->new"; is($Foo, 1, "Foo->new is called"); -} { local $TODO = "need to call non-Moose constructor, not superclass constructor"; is($Bar, 0, "Bar->new is not called"); } -- cgit v1.2.3-54-g00ecf