BSON::Decimal128 always compares false with other types

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BSON::Decimal128 always compares false with other types:

      irb(main):001:0> BSON::Decimal128.new('1')==1
      => false
      

      This behavior does not match Ruby:

      irb(main):002:0> 1.0==1
      => true
      irb(main):003:0> BigDecimal('1')==1
      => true
      

      I think we should match Ruby behavior in BSON 5.

            Assignee:
            Neil Shweky (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: