use
lib
qw( ./lib ./t/lib ../inc ./inc )
;
isa_ok(CanFooBar,
"Type::Tiny"
,
"CanFooBar"
);
isa_ok(CanFooBaz,
"Type::Tiny::Duck"
,
"CanFooBar"
);
should_pass(
"Foo::Bar"
->new, CanFooBar);
should_fail(
"Foo::Bar"
->new, CanFooBaz);
should_pass(
"Foo::Baz"
->new, CanFooBar);
should_pass(
"Foo::Baz"
->new, CanFooBaz);
should_fail(
undef
, CanFooBar);
should_fail({}, CanFooBar);
should_fail(FooBar, CanFooBar);
should_fail(FooBaz, CanFooBar);
should_fail(CanFooBar, CanFooBar);
should_fail(
"Foo::Bar"
, CanFooBar);
done_testing;