Class::MOP with XS
[gitmo/Class-MOP.git] / t / 107_C3MethodDispatchOrder_test.t
index d20f306..2911e18 100644 (file)
@@ -3,10 +3,14 @@
 use strict;
 use warnings;
 
-use Test::More tests => 5;
+use Test::More;
 use File::Spec;
 
-BEGIN { 
+BEGIN {
+    eval "use Algorithm::C3";
+    plan skip_all => "Algorithm::C3 required for this test" if $@;
+    plan tests => 5;    
+
     use_ok('Class::MOP');    
     require_ok(File::Spec->catdir('examples', 'C3MethodDispatchOrder.pod'));
 }