Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests to cover RT #88340.
  • Loading branch information
jnthn committed Nov 12, 2015
1 parent cd2f270 commit eff792a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S05-capture/dot.t
Expand Up @@ -16,7 +16,7 @@ Broken:
## L<S05/Extensible metasyntax (C<< <...> >>)/A leading C<.> causes>
=end pod

plan 59;
plan 61;

my regex dotdot { (.)(.) };

Expand Down Expand Up @@ -59,6 +59,10 @@ ok("bookkeeper" ~~ m/(((\w)$0)+)/, 'Backreference');
is(~$0, 'ookkee', 'Captured');
is(~$0[0], ~['oo', 'kk', 'ee'], 'Captured');

# RT #88340
is('aaaaa' ~~ /(\w)+$0/, 'aaaa', 'Correct semantics of contiguous captures in backref');
is($0.join(''), 'aa', 'Backtracking and backref interaction resulted in correct capture');

# L<S05/Accessing captured subrules/The hash entries>

my regex single { o | k | e };
Expand Down

0 comments on commit eff792a

Please sign in to comment.