5 use Test::More tests => 3;
8 'MooseX::Method::Signatures' => 0.01,
17 use MooseX::Method::Signatures;
18 use MooseX::AlwaysCoerce;
19 use Moose::Util::TypeConstraints;
22 subtype 'MyType', as 'Int';
23 coerce 'MyType', from 'Str', via { length $_ };
25 subtype 'Uncoerced', as 'Int';
28 method foo (MyType :$foo, Uncoerced :$bar) {
33 ok( (my $instance = MyClass->new), 'instance' );
36 local $TODO = 'need rafl to help with implementation';
39 is $instance->foo(foo => "text", bar => 42), '4 42';
40 } 'method called with coerced and uncoerced parameters';