lives_ok {
subtype 'MySpecialHash' => as 'HashRef[Int]';
-} '... created the subtype special okay';
+} 'created the subtype special okay';
{
my $t = find_type_constraint('MySpecialHash');
isa_ok($t, 'Moose::Meta::TypeConstraint');
- is($t->name, 'MySpecialHash', '... name is correct');
+ is($t->name, 'MySpecialHash', 'name is correct');
my $p = $t->parent;
isa_ok($p, 'Moose::Meta::TypeConstraint::Parameterized');
isa_ok($p, 'Moose::Meta::TypeConstraint');
- is($p->name, 'HashRef[Int]', '... parent name is correct');
+ is($p->name, 'HashRef[Int]', 'parent name is correct');
- ok($t->check({ one => 1, two => 2 }), '... validated {one=>1, two=>2} correctly');
- ok(!$t->check({ one => "ONE", two => "TWO" }), '... validated it correctly');
+ ok($t->check({ one => 1, two => 2 }), 'validated {one=>1, two=>2} correctly');
+ ok(!$t->check({ one => "ONE", two => "TWO" }), 'validated it correctly');
ok( $t->equals($t), "equals to self" );
ok( !$t->equals( $t->parent ), "not equal to parent" );
# all values are less then 10
(scalar grep { $_ < 10 } values %{$_}) ? 1 : undef
};
-} '... created the subtype special okay';
+} 'created the subtype special okay';
{
my $t = find_type_constraint('MySpecialHashExtended');
isa_ok($t, 'Moose::Meta::TypeConstraint');
- is($t->name, 'MySpecialHashExtended', '... name is correct');
+ is($t->name, 'MySpecialHashExtended', 'name is correct');
my $p = $t->parent;
isa_ok($p, 'Moose::Meta::TypeConstraint::Parameterized');
isa_ok($p, 'Moose::Meta::TypeConstraint');
- is($p->name, 'HashRef[Int]', '... parent name is correct');
+ is($p->name, 'HashRef[Int]', 'parent name is correct');
- ok($t->check({ one => 1, two => 2 }), '... validated it correctly');
- ok(!$t->check({ zero => 10, one => 11, two => 12 }), '... validated { zero => 10, one => 11, two => 12 } correctly');
- ok(!$t->check({ one => "ONE", two => "TWO" }), '... validated it correctly');
+ ok($t->check({ one => 1, two => 2 }), 'validated it correctly');
+ ok(!$t->check({ zero => 10, one => 11, two => 12 }), 'validated { zero => 10, one => 11, two => 12 } correctly');
+ ok(!$t->check({ one => "ONE", two => "TWO" }), 'validated it correctly');
}
lives_ok {