X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02_MRO.t;h=eb989d43206fce692d7157b4990cf72bd3f44bf8;hb=ef29cd706106f8ab6e7b0c25e8dc832bb337c5ed;hp=f04b1931fabcb0d0910109c892ea45f6fc7d1fea;hpb=d0e2efe52be112c88ad2b401516ae5121b620f06;p=gitmo%2FClass-C3.git diff --git a/t/02_MRO.t b/t/02_MRO.t index f04b193..eb989d4 100644 --- a/t/02_MRO.t +++ b/t/02_MRO.t @@ -3,14 +3,7 @@ use strict; use warnings; -use Test::More tests => 15; - -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 => 14; =pod @@ -86,6 +79,8 @@ Level 0 0 | A | (more specialized) use Class::C3; } +Class::C3::initialize(); + is_deeply( [ Class::C3::calculateMRO('Test::F') ], [ qw(Test::F Test::O) ], @@ -131,4 +126,4 @@ is(Test::A->can('C_or_D')->(), 'Test::D', '... old can(method) resolution has b is(Test::A->C_or_E, 'Test::E', '... old method resolution has been restored'); is(Test::A->can('C_or_E')->(), 'Test::E', '... old can(method) resolution has been restored'); - \ No newline at end of file +