2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
9 use lib 't/lib', 'lib';
12 $TODO = q{Mouse is not yet completed};
21 ::lives_ok { extends 'Foo' } 'loaded Foo superclass correctly';
29 ::lives_ok { extends 'Bar' } 'loaded (inline) Bar superclass correctly';
37 ::lives_ok { extends 'Foo', 'Bar' }
38 'loaded Foo and (inline) Bar superclass correctly';
46 ::throws_ok { extends 'No::Class' }
47 qr{Can't locate No/Class\.pm in \@INC},
48 'correct error when superclass could not be found';
60 ::lives_ok { extends 'Foo', Affe => { -version => 13 } }
61 'extends with version requirement';
68 ::throws_ok { extends 'Foo', Affe => { -version => 42 } }
69 qr/Affe version 42 required--this is only version 23/,
70 'extends with unsatisfied version requirement';