Skip to content

Commit

Permalink
Test .subst works in BEGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 21, 2017
1 parent c81c864 commit 9585230
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-str/substr.t
Expand Up @@ -3,7 +3,7 @@ use lib <t/spec/packages>;
use Test;
use Test::Util;

plan 59;
plan 60;

# L<S32::Str/Str/=item substr>

Expand Down Expand Up @@ -129,4 +129,7 @@ plan 59;
fails-like { "".substr: 5 }, X::OutOfRange,
'Failure in .substr does not get incorrectly handled';

# RT #122789
lives-ok { BEGIN "a".subst: /a/, "b" }, '.subst in BEGIN does not die';

# vim: ft=perl6

0 comments on commit 9585230

Please sign in to comment.