use strict;
use warnings;
-use Test::More tests => 3;
-
-BEGIN {
- use_ok('Class::C3');
- # uncomment this line, and re-run the
- # test to see the normal p5 dispatch order
- #$Class::C3::TURN_OFF_C3 = 1;
-}
+use Test::More tests => 2;
=pod
sub foo { 'Diamond_D::foo => ' . (shift)->next::method }
}
+Class::C3::initialize();
+
is_deeply(
[ Class::C3::calculateMRO('Diamond_D') ],
[ qw(Diamond_D Diamond_C Diamond_B Diamond_A) ],