Permalink
Browse files

suggest is/isnt to get better diagnostics

  • Loading branch information...
1 parent 53b3d40 commit 6fc11b14c3d1e0ab7826b6547bb514e7cdf6c93d @rjbs committed Oct 27, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/Test/Fatal.pm
View
@@ -10,13 +10,15 @@ package Test::Fatal;
use System::Under::Test qw(might_die);
- ok(
- ! exception { might_die; },
+ is(
+ exception { might_die; },
+ undef
"the code lived",
);
- ok(
+ isnt(
exception { might_die; },
+ undef,
"the code died",
);

0 comments on commit 6fc11b1

Please sign in to comment.