Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove implementation specific spec for Array#bsearch_index #1073

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

kyanagi
Copy link
Contributor

@kyanagi kyanagi commented Sep 5, 2023

In the current Ruby's binary searching specification, the find-any mode is designed to return any element for which the block returns zero.
While the current implementation indeed returns the element exactly in the middle, this spec seems unnecessary.
https://github.com/ruby/ruby/blob/master/doc/bsearch.rdoc

@eregon eregon merged commit fe55532 into ruby:master Sep 5, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants