X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F05_MRO.t;fp=t%2F05_MRO.t;h=ef400e07d3ae31b14009688b7d1dbf876fa17247;hb=b9e73af7c2fca0058d6d91827363c07fee7c3867;hp=0000000000000000000000000000000000000000;hpb=b23e9cb9ccfb3d470c72b95818ce57c9b891381b;p=gitmo%2FClass-C3-XS.git diff --git a/t/05_MRO.t b/t/05_MRO.t new file mode 100644 index 0000000..ef400e0 --- /dev/null +++ b/t/05_MRO.t @@ -0,0 +1,30 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Test::More tests => 3; + +BEGIN { + use_ok('Class::C3::XS'); + use_ok('t::lib::F'); +} + +=pod + +From the parrot test t/pmc/object-meths.t + + A B A E + \ / \ / + C D + \ / + \ / + F + +=cut + +is_deeply( + [ Class::C3::XS::calculateMRO('t::lib::F') ], + [ qw(t::lib::F t::lib::C t::lib::D t::lib::A t::lib::B t::lib::E) ], + '... got the right MRO for t::lib::F'); +