Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix precedence for fudged test
  • Loading branch information
usev6 committed May 19, 2015
1 parent 4005f4d commit b19b0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S04-phasers/pre-post.t
Expand Up @@ -159,9 +159,9 @@ throws-like '$pt.test(1)',
{
my $str;
try {
POST { $str ~= (defined $! ?? 'yes' !! 'no'); 1 }
POST { $str ~= (defined $!) ?? 'yes' !! 'no'; 1 }
try { die 'foo' }
$str ~= (defined $! ?? 'aye' !! 'nay');
$str ~= (defined $!) ?? 'aye' !! 'nay';
}
is $str, 'ayeno', 'POST has undefined $! on no exception';
}
Expand Down

0 comments on commit b19b0bf

Please sign in to comment.