Skip to content

Commit 9699743

Browse files
committed
Add tests for RT #RT #123053; currently skipped.
1 parent 5069ad0 commit 9699743

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

S04-statements/try.t

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Test;
44

55
# L<S04/"Statement parsing"/"or try {...}">
66

7-
plan 27;
7+
plan 30;
88

99
{
1010
# simple try
@@ -160,6 +160,15 @@ plan 27;
160160
try { $x = $_ } given '42';
161161
is $x, '42', 'try block in statement-modifying contextualizer';
162162
}
163+
164+
# RT #123053
165+
#?rakudo skip 'RT #123053'
166+
lives_ok { try +'foo' }, 'Failure does not escape try (statement form)';
167+
#?rakudo skip 'RT #123053'
168+
lives_ok { try { +'foo' } }, 'Failure does not escape try (block form)';
169+
#?rakudo skip 'RT #123053'
170+
lives_ok { try { +'foo'; CATCH { default { } } } }, 'Failure does not escape try (block form with CATCH)';
171+
163172
done;
164173

165174
# vim: ft=perl6

0 commit comments

Comments
 (0)