Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1662

Add equality comparison methods to bson integer classes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.4.1
    • 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.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: