Skip to content

+test (r)index for lists of overlapping needles (Rakudo issue #6104)#885

Merged
lizmat merged 2 commits intoRaku:masterfrom
schultzdavid:master
Apr 14, 2026
Merged

+test (r)index for lists of overlapping needles (Rakudo issue #6104)#885
lizmat merged 2 commits intoRaku:masterfrom
schultzdavid:master

Conversation

@schultzdavid
Copy link
Copy Markdown
Contributor

@schultzdavid schultzdavid commented Apr 13, 2026

Wrapping up Rakudo issue 6104, add some tests for index & rindex of the form

"ab".index: <b ab>

(this line of code having wrongly yielded 1 until lizmat's recent fix 1d991f9).

The tests are

  • mostly targeted tests for specific "overlap configurations", and
  • one hodgepodge test at the end to catch other cases of wrong behavior.

@lizmat lizmat merged commit bf0828d into Raku:master Apr 14, 2026
@lizmat
Copy link
Copy Markdown
Contributor

lizmat commented Apr 14, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants