in reply to Deliberate failure in Test::More
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deliberate failure in Test::More
by macrobat (Beadle) on Jun 07, 2010 at 06:53 UTC |