Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xiangyu-sun/9476c3b3a6501c99e8ccaac1491022f3 to your computer and use it in GitHub Desktop.
Save xiangyu-sun/9476c3b3a6501c99e8ccaac1491022f3 to your computer and use it in GitHub Desktop.
expect\(([^\)]+)\)\.to\(beFalse\(\)\)
XCTAssertFalse($1)
expect\(([^\)]+)\)\.to\(beTrue\(\)\)
XCTAssertTrue($1)
fail\(([^\)]+)\)
XCTFail($1)
expect\(([^\)]+)\)\.to\(equal\(([^\)]+)\)\)
XCTAssertEqual($1, $2)
expect\(([^\)]+)\)\.to\(be\(([^\)]+)\)\)
XCTAssertIdentical($1, $2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment