Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for program-level handlers.
In its own test file rather than catch.t, so as not to cause trouble
debugging issues with catch.t tests.
  • Loading branch information
jnthn committed Jan 12, 2015
1 parent 35714a7 commit 93081cd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions S04-exception-handlers/top-level.t
@@ -0,0 +1,14 @@
use v6;

use Test;

plan 1;

sub foo { die };
foo;

CATCH {
when * {
pass 'Top-level handler caught exception'
}
}

0 comments on commit 93081cd

Please sign in to comment.