4 use Test::More tests => 6;
5 use Test::NoWarnings 1.04 ':early';
8 use_ok('MooseX::Getopt');
14 use Moose::Util::TypeConstraints;
16 use Scalar::Util 'looks_like_number';
18 with 'MooseX::Getopt';
22 => where { scalar (grep { looks_like_number($_) } @$_) };
27 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');