Skip to content

Commit c24974b

Browse files
committed
Correct test identified in RT #125003.
It wrongly assumed that a Capture matched multiple times stringifies to the final match, whereas it's actually an array of all of them.
1 parent 0210f20 commit c24974b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

S05-capture/dot.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ is(~$0[1], "d", 'Nested $3');
5757

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

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

0 commit comments

Comments
 (0)