General

Profile

Esse (Piotr Szmielew)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

01/16/2017

09:48 AM Ruby Bug #12970: == Equality of recursive sets fails
Also documentation at top of file says:
~~~ ruby
# * Set assumes that the identity of each element does not change
# while it is stored. Modifying an element of a set will render the
# set to an unreliable state.
~~~
cre...
Esse (Piotr Szmielew)

12/27/2016

08:34 AM Ruby Bug #12970: == Equality of recursive sets fails
In this particular example even manually rehashing internal hash doesn't quite work...
~~~ ruby
s = Set.new
t = Set.new
s << [s]
t << [t]
s == t # => false
s.instance_variable_get(:@hash).rehash
t.instance_variable_get(:@hash)....
Esse (Piotr Szmielew)

12/25/2016

12:17 AM Ruby Bug #13062: 2.4.0-rc1 BigDecimal regression - to_d inconsistent with other numeric classes
In attachment you will find patch for this issue.
This patch fixes issue with String#to_d method which was inconsistent with other to_d methods (String one returned error, while other simply returns 0).
Also, there tests added for ...
Esse (Piotr Szmielew)

12/23/2016

09:54 PM Ruby Bug #12970: == Equality of recursive sets fails
I've created patch for this issue.
Basically we need to rehash hash beneath set if (and only if) added object is self (therefore creating recursive set).
This patch add such rehash behaviour. This will also fix subset and superset ...
Esse (Piotr Szmielew)

Also available in: Atom