Skip to content

Commit

Permalink
Test this exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Feb 15, 2023
1 parent 56fe641 commit bafb884
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/09sugar.t
Expand Up @@ -44,4 +44,14 @@ for ( '1.0' ) {
fail;
}

{
my $e = exception {
for ( '1.0' ) {
when 1;
when '1.0';
}
};
like $e, qr/when: expects then/;
}

done_testing;

0 comments on commit bafb884

Please sign in to comment.