From: Dave Rolsky Date: Fri, 27 Mar 2009 20:49:16 +0000 (-0500) Subject: Comments are quite but completely useless X-Git-Tag: 0.73_01~53 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9308ecbe6fc668abf0dfeabae27a6de1751719b2;p=gitmo%2FMoose.git Comments are quite but completely useless --- diff --git a/t/040_type_constraints/022_custom_type_errors.t b/t/040_type_constraints/022_custom_type_errors.t index f9ddf6f..6970806 100644 --- a/t/040_type_constraints/022_custom_type_errors.t +++ b/t/040_type_constraints/022_custom_type_errors.t @@ -45,17 +45,14 @@ my $chimera; lives_ok { $chimera = Animal->new( leg_count => 4 ) } '... no errors thrown, value is good'; -# first we remove the lion's legs.. throws_ok { $chimera->leg_count(0) } qr/This number \(0\) is not less than ten!/, "gave custom supertype error message on set_value"; -# mix in a few octopodes throws_ok { $chimera->leg_count(16) } qr/This number \(16\) is not less than ten!/, "gave custom subtype error message on set_value"; -# try the lazy legs my $gimp; lives_ok { my $gimp = Animal->new() } '... no errors thrown, value is good'; throws_ok { $gimp->leg_count }