-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: BSON
-
Fully Compatible
This is a problem for the driver test suite:
(byebug) BSON::Int64.new(1)==BSON::Int64.new(1)
false
Looks like equality comparisons are implemented for some classes, like ObjectId, but not others like most/all of the numbers.
At a minimum, non-container integer classes should have equality defined on them.