6 use Test::More tests => 5;
9 use_ok('MooseX::Getopt');
15 use Moose::Util::TypeConstraints;
17 use Scalar::Util 'looks_like_number';
19 with 'MooseX::Getopt';
23 => where { scalar (grep { looks_like_number($_) } @$_) };
28 default => sub { [0] }
36 my $app = App->new_with_options;
39 is_deeply($app->nums, [0], '... nums is [0] as expected');
43 local @ARGV = ('--nums', 3, '--nums', 5);
45 my $app = App->new_with_options;
48 is_deeply($app->nums, [3, 5], '... nums is [3, 5] as expected');