4 use Test::More tests => 6;
5 use Test::NoWarnings 1.04 ':early';
7 use Getopt::Long::Descriptive;
9 use_ok('MooseX::Getopt');
15 with 'MooseX::Getopt';
29 my $foo = Engine::Foo->new_with_options(nproc => 10);
30 isa_ok($foo, 'Engine::Foo');
32 is($foo->nproc, 10, '... got the right value (10), not the default (1)');
36 my $foo = Engine::Foo->new_with_options();
37 isa_ok($foo, 'Engine::Foo');
39 is($foo->nproc, 1, '... got the right value (1), without GLD needing to handle defaults');