X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F300_immutable%2F009_buildargs.t;h=5f9a10adecd0fb62b2271749f668088246b64a78;hb=1f1ccccdb5564d10867ffb11df17a5155999a62a;hp=c7c700cb87d18657d9a7d9d4926a94dfc4a0bafb;hpb=b0000b3d2779a5829883471f95f4a8548b486c82;p=gitmo%2FMouse.git diff --git a/t/300_immutable/009_buildargs.t b/t/300_immutable/009_buildargs.t index c7c700c..5f9a10a 100644 --- a/t/300_immutable/009_buildargs.t +++ b/t/300_immutable/009_buildargs.t @@ -31,23 +31,13 @@ use Test::More tests => 14; foreach my $class qw(Foo Bar) { is( $class->new->bar, undef, "no args" ); is( $class->new( bar => 42 )->bar, 42, "normal args" ); - SKIP: { - skip "this feature doesn't supported by Mouse", 1; - is( $class->new( 37 )->bar, 37, "single arg" ); - }; - { - my $o = $class->new(bar => 42, baz => 47); - is($o->bar, 42, '... got the right bar'); - is($o->baz, 47, '... got the right bar'); - } - SKIP: { - skip "this feature doesn't supported by Mouse", 2; - { - my $o = $class->new(42, baz => 47); - is($o->bar, 42, '... got the right bar'); - is($o->baz, 47, '... got the right bar'); - } - }; + is( $class->new( 37 )->bar, 37, "single arg" ); + my $o = $class->new(bar => 42, baz => 47); + is($o->bar, 42, '... got the right bar'); + is($o->baz, 47, '... got the right bar'); + my $ob = $class->new(42, baz => 47); + is($ob->bar, 42, '... got the right bar'); + is($ob->baz, 47, '... got the right bar'); }