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

#hash and #eql? are broken because RBTree does not implement them #3

Open
jaynetics opened this issue Jan 8, 2021 · 2 comments
Open

Comments

@jaynetics
Copy link

jaynetics commented Jan 8, 2021

on Ruby 2.7:

require 'set'
SortedSet[1].eql?(SortedSet[1]) # => true

on Ruby 3.0:

require 'sorted_set'
SortedSet[1].eql?(SortedSet[1]) # => false

similar to #2, this could be fixed here via an override, but rbtree3 rbtree seems more like the correct place.

jaynetics added a commit to jaynetics/character_set that referenced this issue Jan 11, 2021
@dleidert
Copy link

dleidert commented Nov 28, 2021

This issue causes the hamster gem's tests to fail: hamstergem/hamster#251

@alexdowad
Copy link

alexdowad commented Nov 28, 2021

This issue causes the hamster gem's tests to fail: hamstergem/hamster#251

I just found my way here while investigating the same issue 😄

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

No branches or pull requests

3 participants