Add equality comparison methods to bson integer classes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • bson-4.4.1
    • Affects Version/s: None
    • Component/s: BSON
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: