We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f318d66 commit f54ad5dCopy full SHA for f54ad5d
t/basic.t
@@ -133,6 +133,14 @@ test StructuredTypeConstraint => sub {
133
);
134
};
135
136
+test StructuredTypeCoercion => sub {
137
+ my $tc = subtype as Dict[];
138
+ coerce $tc, from Undef, via { +{} };
139
+
140
+ ok(StructuredTypeCoercion->check($_)) for $tc->coercion;
141
+ ok(!StructuredTypeCoercion->check($_)) for $tc, Str, 42;
142
+};
143
144
test 'MooseX::Role::Parameterized' => sub {
145
plan skip_all => 'MooseX::Role::Parameterized required'
146
unless eval { require MooseX::Role::Parameterized; 1 };
@@ -170,8 +178,6 @@ EOR
170
178
171
179
172
180
173
-# StructuredTypeCoercion
174
-
175
181
# TypeEquals
176
182
# TypeOf
177
183
# SubtypeOf
0 commit comments