smokinggun (John Weir)
- Login: smokinggun
- Email: john@smokinggun.com
- Registered on: 03/28/2011
- Last sign in: 12/25/2023
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
01/11/2022
-
01:08 AM Ruby Bug #18470: Union of two identical sets produces a set with duplicate members
- > The main problem is that `Set` doesn't expose a `rehash` method, so there's not really any way to workaround it. Maybe it should?
The rehash works. Should `add` also have a rehash?
```ruby
C = Struct.new :id
a = Set.new
f = C...
01/10/2022
-
08:29 PM Ruby Bug #18470 (Closed): Union of two identical sets produces a set with duplicate members
- We came across an issue where the union of two identical sets produced a non uniq Set.
We noticed this when upgrading from 2.7.1 to 3.1
See the attached test, the last assertion fails
``` ruby
C = Struct.new :id
a = Set.new
b...