4 use Test::More tests => 5;
7 use_ok('MooseX::Getopt');
13 use Moose::Util::TypeConstraints;
15 use Scalar::Util 'looks_like_number';
17 with 'MooseX::Getopt';
21 => where { scalar (grep { looks_like_number($_) } @$_) };
26 default => sub { [0] }
34 my $app = App->new_with_options;
37 is_deeply($app->nums, [0], '... nums is [0] as expected');
41 local @ARGV = ('--nums', 3, '--nums', 5);
43 my $app = App->new_with_options;
46 is_deeply($app->nums, [3, 5], '... nums is [3, 5] as expected');