Version 0.13.
[gitmo/Class-C3-XS.git] / t / 33_next_method_used_with_NEXT.t
index b2e4843..42a3b61 100644 (file)
@@ -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');