X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fmro%2Fbasic_03_dfs.t;h=5794d8ff7f2f89362eb5c246ef0f9948e56ef293;hb=b88df9907a8d7b4fae1100629cc85633a901355e;hp=d2af5b2ac9946aad1a542952ac0fa273d0ed5ba9;hpb=e1a479c5e0c08fb10925261f03573261c69ca0dc;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/mro/basic_03_dfs.t b/t/mro/basic_03_dfs.t index d2af5b2..5794d8f 100644 --- a/t/mro/basic_03_dfs.t +++ b/t/mro/basic_03_dfs.t @@ -2,14 +2,8 @@ use strict; use warnings; -BEGIN { - unless (-d 'blib') { - chdir 't' if -d 't'; - @INC = '../lib'; - } -} -use Test::More tests => 4; +require q(./test.pl); plan(tests => 4); =pod @@ -92,10 +86,10 @@ Level 0 0 | A | use mro 'dfs'; } -is_deeply( +ok(eq_array( mro::get_linear_isa('Test::A'), - [ qw(Test::A Test::B Test::E Test::O Test::D Test::C Test::F) ], - '... got the right MRO for Test::A'); + [ qw(Test::A Test::B Test::E Test::O Test::D Test::C Test::F) ] +), '... got the right MRO for Test::A'); is(Test::A->O_or_D, 'Test::O', '... got the right method dispatch'); is(Test::A->O_or_F, 'Test::O', '... got the right method dispatch');