Commit | Line | Data |
---|---|---|
d401eda1 | 1 | #!/usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
ef29cd70 | 6 | use Test::More tests => 2; |
d401eda1 | 7 | |
8 | BEGIN { | |
ef29cd70 | 9 | use_ok('t::lib::F'); |
d401eda1 | 10 | } |
11 | ||
12 | =pod | |
13 | ||
14 | From the parrot test t/pmc/object-meths.t | |
15 | ||
16 | A B A E | |
17 | \ / \ / | |
18 | C D | |
19 | \ / | |
20 | \ / | |
21 | F | |
22 | ||
23 | =cut | |
24 | ||
2ffffc6d | 25 | Class::C3::initialize(); |
26 | ||
d401eda1 | 27 | is_deeply( |
ef29cd70 | 28 | [ Class::C3::calculateMRO('t::lib::F') ], |
d401eda1 | 29 | [ qw(t::lib::F t::lib::C t::lib::D t::lib::A t::lib::B t::lib::E) ], |
30 | '... got the right MRO for t::lib::F'); | |
31 |