4 use Test::More tests => 5;
7 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
10 use_ok('MooseX::Getopt');
16 with 'MooseX::Getopt';
19 metaclass => 'Getopt',
30 my $foo = Engine::Foo->new_with_options(nproc => 10);
31 isa_ok($foo, 'Engine::Foo');
33 is($foo->nproc, 10, '... got the right value (10), not the default (1)');
37 my $foo = Engine::Foo->new_with_options();
38 isa_ok($foo, 'Engine::Foo');
40 is($foo->nproc, 1, '... got the right value (1), without GLD needing to handle defaults');