use_ok("Moose::Util::TypeConstraints");
}
-ok ! exception {
+is( exception {
subtype 'MyCollections' => as 'ArrayRef | HashRef';
-}, '... created the subtype special okay';
+}, undef, '... created the subtype special okay' );
{
my $t = find_type_constraint('MyCollections');
ok(!$t->check(1), '... validated it correctly');
}
-ok ! exception {
+is( exception {
subtype 'MyCollectionsExtended'
=> as 'ArrayRef|HashRef'
=> where {
}
1;
};
-}, '... created the subtype special okay';
+}, undef, '... created the subtype special okay' );
{
my $t = find_type_constraint('MyCollectionsExtended');