We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
* Operating system: mac * Ruby implementation: Ruby * `concurrent-ruby` version: master
Here is the test case:
def dequeue_all(queue) queue.size.times.inject([]) do |acc, _| acc << queue.pop end end queue = described_class.from_list([2, 1, 2, 0, 1, 1, 2], order: :max) queue.delete(0) expect(dequeue_all(queue)).to eq([2, 2, 2, 1, 1, 1])
It fails with the following error:
expected: [2, 2, 2, 1, 1, 1] got: [2, 2, 1, 2, 1, 1]
As you can see it does not maintain the oredr after removing an element in some cases.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Here is the test case:
It fails with the following error:
As you can see it does not maintain the oredr after removing an element in some cases.
The text was updated successfully, but these errors were encountered: