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;
15 use Mouse::Util::TypeConstraints;
18 type MyRef => where { ref($_) };
20 ::ok( !$@, '... successfully exported &type to Foo package' );
23 subtype MyArrayRef => as MyRef => where { ref($_) eq 'ARRAY' };
25 ::ok( !$@, '... successfully exported &subtype to Foo package' );
27 Mouse::Util::TypeConstraints->export_type_constraints_as_functions();
29 ::ok( MyRef( {} ), '... Ref worked correctly' );
30 ::ok( MyArrayRef( [] ), '... ArrayRef worked correctly' );