Completely remove Test::More from the MRO tests, by Brandon Black
[p5sagit/p5-mst-13.2.git] / t / mro / basic.t
index 303708e..3f1d1cf 100644 (file)
@@ -3,16 +3,7 @@
 use strict;
 use warnings;
 
-BEGIN {
-    unless (-d 'blib') {
-        chdir 't' if -d 't';
-        @INC = '../lib';
-    }
-}
-
-use Test::More;
-
-plan tests => 8;
+require q(./test.pl); plan(tests => 8);
 
 {
     package MRO_A;
@@ -30,19 +21,22 @@ plan tests => 8;
 }
 
 is(mro::get_mro('MRO_F'), 'dfs');
-is_deeply(mro::get_linear_isa('MRO_F'),
+ok(eq_array(
+    mro::get_linear_isa('MRO_F'),
     [qw/MRO_F MRO_D MRO_A MRO_B MRO_C MRO_E/]
-);
+));
 mro::set_mro('MRO_F', 'c3');
 is(mro::get_mro('MRO_F'), 'c3');
-is_deeply(mro::get_linear_isa('MRO_F'),
+ok(eq_array(
+    mro::get_linear_isa('MRO_F'),
     [qw/MRO_F MRO_D MRO_E MRO_A MRO_B MRO_C/]
-);
+));
 
 my @isarev = sort { $a cmp $b } mro::get_isarev('MRO_B');
-is_deeply(\@isarev,
+ok(eq_array(
+    \@isarev,
     [qw/MRO_D MRO_E MRO_F/]
-);
+));
 
 ok(!mro::is_universal('MRO_B'));