Skip to content

Commit

Permalink
remove eval_dies_with_error
Browse files Browse the repository at this point in the history
  • Loading branch information
diakopter committed Jun 2, 2012
1 parent 2a30970 commit 014fec3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/Test.pm6 100644 → 100755
Expand Up @@ -143,16 +143,6 @@ sub eval_lives_ok($code,$why?) is export {
sub eval_dies_ok($code,$why?) is export { sub eval_dies_ok($code,$why?) is export {
$*TEST-BUILDER.ok(no-control({ eval $code }) eq "die", $why); $*TEST-BUILDER.ok(no-control({ eval $code }) eq "die", $why);
} }
sub eval_dies_with_error($code, $error_pattern, $why?) is export {
my $died_with_error;
try {
CATCH {
$died_with_error = "$_" ~~ $error_pattern;
}
eval $code;
}
$*TEST-BUILDER.ok($died_with_error, $why);
}
sub eval_succeeds_ok($code,$why?,:$ignore = ()) is export { sub eval_succeeds_ok($code,$why?,:$ignore = ()) is export {
$*TEST-BUILDER.ok(?(no-control({ eval $code }) eq any("", @$ignore)), $why); $*TEST-BUILDER.ok(?(no-control({ eval $code }) eq any("", @$ignore)), $why);
} }
Expand Down

0 comments on commit 014fec3

Please sign in to comment.