Nimble: Use Nimble to express the expected outcomes of Swift or Objective-C expressions. Inspired by Cedar. // Swift expect(1 + 1).to(equal(2)) expect(1.2).to(beCloseTo(1.1, within: 0.1)) expect(3) > 2 expect(“seahorse”).to(contain(“sea”)) expect([“Atlantic”, “Pacific”]).toNot(contain(“Mississippi”)) expect(ocean.isClean).toEventually(beTruthy()) BDD has never felt right to me, but I do like using a layer on top of XCTest’s macros because they are both verbose … Continue reading Nimble Matcher Framework
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed