X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=t%2F025-more-isa.t;h=3e18e967cc5a0cd22adc8c8dbd033a37cf81a54d;hp=022c89c495ed083aefc1a1d9be13bab0dac35fc7;hb=ff6870694bb440c13826e0f0fa25e760247fd24e;hpb=8c0a77aa50dc0fef958845e65f2b5b87a9239024 diff --git a/t/025-more-isa.t b/t/025-more-isa.t index 022c89c..3e18e96 100755 --- a/t/025-more-isa.t +++ b/t/025-more-isa.t @@ -105,7 +105,7 @@ do { ); }; -for ('B'..'E', 'G::H') { +for ('B', 'D'..'E', 'G::H') { lives_ok { ClassNameTests->new(class => $_); }; @@ -116,17 +116,23 @@ for ('B'..'E', 'G::H') { }; } -TODO: { - local $TODO = "Moose throws errors here. Mouse does not"; - throws_ok { - ClassNameTests->new(class => 'A'); - } qr/Attribute \(class\) does not pass the type constraint because: Validation failed for 'ClassName' failed with value A/; +throws_ok { + ClassNameTests->new(class => 'A'); +} qr/Attribute \(class\) does not pass the type constraint because: Validation failed for 'ClassName' failed with value A/; - throws_ok { - my $obj = ClassNameTests->new; - $obj->class('A'); - } qr/Attribute \(class\) does not pass the type constraint because: Validation failed for 'ClassName' failed with value A/; -} +throws_ok { + my $obj = ClassNameTests->new; + $obj->class('A'); +} qr/Attribute \(class\) does not pass the type constraint because: Validation failed for 'ClassName' failed with value A/; + +throws_ok { + ClassNameTests->new(class => 'C'); +} qr/Attribute \(class\) does not pass the type constraint because: Validation failed for 'ClassName' failed with value C/; + +throws_ok { + my $obj = ClassNameTests->new; + $obj->class('C'); +} qr/Attribute \(class\) does not pass the type constraint because: Validation failed for 'ClassName' failed with value C/; for ('F', 'G', 'I', 'Z') { throws_ok {