From: Arthur Axel 'fREW' Schmidt Date: Sat, 13 Nov 2010 16:58:41 +0000 (-0600) Subject: test hashref arg for new X-Git-Tag: 0.009001~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e505d5c271306063f1d539e2cdfdba834ecc243b;p=gitmo%2FMoo.git test hashref arg for new --- diff --git a/t/method-generate-constructor.t b/t/method-generate-constructor.t index db10020..6a030c8 100644 --- a/t/method-generate-constructor.t +++ b/t/method-generate-constructor.t @@ -51,4 +51,10 @@ is( 'pass with both required args' ); +is( + exception { Bar->new({ one => 1, THREE => 3 }) }, + undef, + 'hashrefs also supported' +); + done_testing;