MouseX-Getopt
view release on metacpan or search on metacpan
t/103_uc_bug.t view on Meta::CPAN
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 3;
{
package App;
use Mouse;
with qw(MouseX::Getopt);
has 'TrackingNumber' => (
is => 'rw',
isa => 'Str',
);
has 'otherparam' => (
is => 'rw',
isa => 'Str',
);
}
{
local @ARGV = ('--TrackingNumber','1Z1234567812345670','--otherparam','foo');
my $app = App->new_with_options;
isa_ok($app, 'App');
is($app->TrackingNumber, '1Z1234567812345670', '... TrackingNumber is as expected');
is($app->otherparam, 'foo', '... otherparam is as expected');
}
( run in 1.179 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )