Skip to content

Commit

Permalink
Test .perl of handled Failures
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Feb 10, 2018
1 parent 3e60598 commit 9625f78
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S04-exceptions/fail.t
Expand Up @@ -3,7 +3,7 @@ use lib <t/spec/packages>;
use Test;
use Test::Util;

plan 36;
plan 37;

# L<S04/Exceptions/The fail function>

Expand Down Expand Up @@ -177,4 +177,10 @@ subtest 'Failure.self' => {
is_run Failure.new(Exception.new); Nil, {:out(""), :err(*), :1status},
'Failure.new(Exception.new) does not segfault';

# RT #131496
without Failure.new {
is-deeply .perl.EVAL.handled, True,
'Failure:D.perl.EVAL roundtrips `handled` flag';
}

# vim: ft=perl6

0 comments on commit 9625f78

Please sign in to comment.