diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-04-21 09:08:04 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-04-21 09:08:04 +0000 |
commit | c94dd5be9196e7fc999830ac8069b03bb8f510be (patch) | |
tree | 81d7e73ad7c941ff0aa3b605c46503fdb8c3e178 /t/mro/basic_03_dfs.t | |
parent | 640da897d5acac197d270d816dc0d8bad1c1cedb (diff) | |
download | perl-c94dd5be9196e7fc999830ac8069b03bb8f510be.tar.gz |
Completely remove Test::More from the MRO tests, by Brandon Black
p4raw-id: //depot/perl@31004
Diffstat (limited to 't/mro/basic_03_dfs.t')
-rw-r--r-- | t/mro/basic_03_dfs.t | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/t/mro/basic_03_dfs.t b/t/mro/basic_03_dfs.t index d2af5b2ac9..5794d8ff7f 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'); |