4 use Test::More tests => 6;
5 use Test::NoWarnings 1.04 ':early';
8 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
11 use_ok('MooseX::Getopt');
17 with 'MooseX::Getopt';
31 my $foo = Engine::Foo->new_with_options(nproc => 10);
32 isa_ok($foo, 'Engine::Foo');
34 is($foo->nproc, 10, '... got the right value (10), not the default (1)');
38 my $foo = Engine::Foo->new_with_options();
39 isa_ok($foo, 'Engine::Foo');
41 is($foo->nproc, 1, '... got the right value (1), without GLD needing to handle defaults');