adding the some preliminary junk
[gitmo/Class-C3-XS.git] / t / 05_MRO.t
CommitLineData
8995e827 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 3;
7
8BEGIN {
9 use lib 'opt', '../opt', '..';
10 use_ok('c3');
11 use_ok('t::lib::F');
12}
13
14=pod
15
16From the parrot test t/pmc/object-meths.t
17
18 A B A E
19 \ / \ /
20 C D
21 \ /
22 \ /
23 F
24
25=cut
26
27Class::C3::initialize();
28
29is_deeply(
30 [ c3::calculateMRO('t::lib::F') ],
31 [ qw(t::lib::F t::lib::C t::lib::D t::lib::A t::lib::B t::lib::E) ],
32 '... got the right MRO for t::lib::F');
33