Skip to content

Commit

Permalink
Correct test identified in RT #125003.
Browse files Browse the repository at this point in the history
It wrongly assumed that a Capture matched multiple times stringifies
to the final match, whereas it's actually an array of all of them.
  • Loading branch information
jnthn committed Jul 6, 2015
1 parent 0210f20 commit c24974b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions S05-capture/dot.t
Expand Up @@ -57,8 +57,7 @@ is(~$0[1], "d", 'Nested $3');

ok("bookkeeper" ~~ m/(((\w)$0)+)/, 'Backreference');
is(~$0, 'ookkee', 'Captured');
#?rakudo todo 'really? :-) RT #125003'
is(~$0[0], 'ee', 'Captured');
is(~$0[0], ~['oo', 'kk', 'ee'], 'Captured');

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

Expand Down

0 comments on commit c24974b

Please sign in to comment.