Skip to content

Commit

Permalink
Test sink statement prefix explodes Failures
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 8, 2016
1 parent 57b0f8c commit 49595cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S04-exceptions/fail.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 31;
plan 32;

# L<S04/Exceptions/The fail function>

Expand Down Expand Up @@ -146,4 +146,8 @@ s1();
nok $here, 'fail outside of routine just behaves like die (3)';
}

# https://irclog.perlgeek.de/perl6/2016-12-08#i_13706422
throws-like { sink Failure.new }, Exception,
'sink statement prefix explodes Failures';

# vim: ft=perl6

0 comments on commit 49595cb

Please sign in to comment.