Skip to content

Commit

Permalink
Add test for $/ not being set inside for { } issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 31, 2016
1 parent 14358e2 commit 819db21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S05-modifier/continue.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 13;
plan 14;

#L<S05/Modifiers/"The :c">

Expand Down Expand Up @@ -47,4 +47,9 @@ my $string = "1a2a3a";
is(~$m, '3a', "match third 'a'");
}

{
for 42 { "foo".match(/foo/) };
is $/, 'foo', 'is $/ set correctly in a for loop';
}

# vim: syn=perl6 sw=4 ts=4 expandtab

0 comments on commit 819db21

Please sign in to comment.