lives_ok {
subtype 'MyCollections' => as 'ArrayRef | HashRef';
-} '... created the subtype special okay';
+} 'created the subtype special okay';
{
my $t = find_type_constraint('MyCollections');
isa_ok($t, 'Moose::Meta::TypeConstraint');
- is($t->name, 'MyCollections', '... name is correct');
+ is($t->name, 'MyCollections', 'name is correct');
my $p = $t->parent;
isa_ok($p, 'Moose::Meta::TypeConstraint::Union');
isa_ok($p, 'Moose::Meta::TypeConstraint');
- is($p->name, 'ArrayRef|HashRef', '... parent name is correct');
+ is($p->name, 'ArrayRef|HashRef', 'parent name is correct');
- ok($t->check([]), '... validated it correctly');
- ok($t->check({}), '... validated it correctly');
- ok(!$t->check(1), '... validated it correctly');
+ ok($t->check([]), 'validated it correctly');
+ ok($t->check({}), 'validated it correctly');
+ ok(!$t->check(1), 'validated it correctly');
}
lives_ok {
}
1;
};
-} '... created the subtype special okay';
+} 'created the subtype special okay';
{
my $t = find_type_constraint('MyCollectionsExtended');
isa_ok($t, 'Moose::Meta::TypeConstraint');
- is($t->name, 'MyCollectionsExtended', '... name is correct');
+ is($t->name, 'MyCollectionsExtended', 'name is correct');
my $p = $t->parent;
isa_ok($p, 'Moose::Meta::TypeConstraint::Union');
isa_ok($p, 'Moose::Meta::TypeConstraint');
- is($p->name, 'ArrayRef|HashRef', '... parent name is correct');
+ is($p->name, 'ArrayRef|HashRef', 'parent name is correct');
- ok(!$t->check([]), '... validated it correctly');
- ok($t->check([1, 2]), '... validated it correctly');
+ ok(!$t->check([]), 'validated it correctly');
+ ok($t->check([1, 2]), 'validated it correctly');
- ok(!$t->check({}), '... validated it correctly');
- ok($t->check({ one => 1, two => 2 }), '... validated it correctly');
+ ok(!$t->check({}), 'validated it correctly');
+ ok($t->check({ one => 1, two => 2 }), 'validated it correctly');
- ok(!$t->check(1), '... validated it correctly');
+ ok(!$t->check(1), 'validated it correctly');
}