From: Dave Rolsky Date: Fri, 29 Oct 2010 15:08:04 +0000 (-0500) Subject: Tidy code X-Git-Tag: 1.18~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5325e3179c93e05856dfff938baa8f689479d736;p=gitmo%2FMoose.git Tidy code --- diff --git a/t/070_native_traits/011_array_subtypes.t b/t/070_native_traits/011_array_subtypes.t index 4251cbd..1c30ad4 100644 --- a/t/070_native_traits/011_array_subtypes.t +++ b/t/070_native_traits/011_array_subtypes.t @@ -170,7 +170,8 @@ my $foo = Foo->new; } { - my $expect = qr/\QAttribute (a4) does not pass the type constraint because: Validation failed for 'ArrayRef' with value invalid/; + my $expect + = qr/\QAttribute (a4) does not pass the type constraint because: Validation failed for 'ArrayRef' with value invalid/; like( exception { $foo->accessor_a4(0); }, @@ -179,7 +180,7 @@ my $foo = Foo->new; ); like( - exception { $foo->accessor_a4(0 => 42); }, + exception { $foo->accessor_a4( 0 => 42 ); }, $expect, 'invalid default is caught when trying to write via accessor' );