my $incomplete = eval { Foo->new( first_name => 'Joe', ) }; ok( !$incomplete );
You could be more specific and check whether the right exception was thrown.
You might also like Test::Exception
In reply to Re: Deliberate failure in Test::More
by ikegami
in thread Deliberate failure in Test::More
by macrobat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |