Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test throwing exceptions in CATCH blocks
  • Loading branch information
moritz committed Oct 26, 2011
1 parent be0ff5f commit c3c9fb7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion S04-exception-handlers/catch.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 24;
plan 25;

=begin desc
Expand Down Expand Up @@ -213,5 +213,18 @@ lives_ok { do {die 'blah'; CATCH {default {}}}; }, 'do block with CATCH {default
ok $!.^isa(Exception), '$!.^isa works';
}

# RT #64262
{
dies_ok {
try {
die 1;
CATCH {
default {
die 2;
}
}
}
}, 'can throw exceptions in CATCH';
}

# vim: ft=perl6

0 comments on commit c3c9fb7

Please sign in to comment.