X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F33_next_method_used_with_NEXT.t;h=42a3b61a3413926e50dcfcc2b2052a8ad506a792;hb=2ad0250eb6f2a158c97851012f770ebd67e77676;hp=b2e484300892edea7f374f63602e79cebca45cbb;hpb=8995e8271e0f7f7b9c0942a4425e8a44099bf608;p=gitmo%2FClass-C3-XS.git diff --git a/t/33_next_method_used_with_NEXT.t b/t/33_next_method_used_with_NEXT.t index b2e4843..42a3b61 100644 --- a/t/33_next_method_used_with_NEXT.t +++ b/t/33_next_method_used_with_NEXT.t @@ -11,18 +11,18 @@ BEGIN { plan tests => 4; } +use Class::C3::XS; + { package Foo; use strict; use warnings; - use Class::C3; sub foo { 'Foo::foo' } package Fuz; use strict; use warnings; - use Class::C3; use base 'Foo'; sub foo { 'Fuz::foo => ' . (shift)->next::method } @@ -30,7 +30,6 @@ BEGIN { package Bar; use strict; use warnings; - use Class::C3; use base 'Foo'; sub foo { 'Bar::foo => ' . (shift)->next::method } @@ -45,8 +44,6 @@ BEGIN { sub foo { 'Baz::foo => ' . (shift)->NEXT::foo } } -Class::C3::initialize(); - is(Foo->foo, 'Foo::foo', '... got the right value from Foo->foo'); is(Fuz->foo, 'Fuz::foo => Foo::foo', '... got the right value from Fuz->foo'); is(Bar->foo, 'Bar::foo => Foo::foo', '... got the right value from Bar->foo');