Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-241

Replace pre-existing test code to use the new bsonEqual Nimble matcher

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 0.0.8
    • None

    Description

      As mentioned by kaitlin.mahar in the PR for SWIFT-226, we should, once that PR is merged, use the newly added Nimble matcher for bsonEqual to replace code like:

      expect(doc["a"] as? Int).to(equal(5))
      

      to

      expect(doc["a"]).to(bsonEqual(5))
      

      Attachments

        Issue Links

          Activity

            People

              patrick.freed@mongodb.com Patrick Freed
              may.hoque@mongodb.com May Hoque
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: