6 use Test::More tests => 2;
9 use_ok('Algorithm::C3');
14 This example is take from: http://www.python.org/2.3/mro.html
16 "Serious order disagreement" # From Guido
23 class Z(A,B): pass #creates Z(A,B) in Python 2.2
25 pass # Z(A,B) cannot be created in Python 2.3
35 our @ISA = ('X', 'Y');
38 our @ISA = ('Y', 'X');
41 our @ISA = ('XY', 'YX');
45 Algorithm::C3::merge('Z' => sub {
50 like($@, qr/^Inconsistent hierarchy/, '... got the right error with an inconsistent hierarchy');