Permalink
Browse files

refactor assert_dies

  • Loading branch information...
1 parent e6befbe commit dc93066707a93350978e8a0f28bbaf02f7e74e08 @leto committed Mar 5, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 funcs.pl
View
@@ -66,7 +66,7 @@ ($;$)
{
my ($code,$msg) = @_;
eval { &$code };
- $@ ? ok(1, $msg) : ok (0, $msg );
+ ok($@, $msg);
}
1;

0 comments on commit dc93066

Please sign in to comment.