llvm-project/clang-tools-extra/docs/clang-tidy/checks/objc/assert-equals.rst
raw| 1 | .. title:: clang-tidy - objc-assert-equals |
| 2 | |
| 3 | objc-assert-equals |
| 4 | ================== |
| 5 | |
| 6 | Finds improper usages of `XCTAssertEqual` and `XCTAssertNotEqual` and replaces |
| 7 | them with `XCTAssertEqualObjects` or `XCTAssertNotEqualObjects`. |
| 8 | |
| 9 | This makes tests less fragile, as many improperly rely on pointer equality for |
| 10 | strings that have equal values. This assumption is not guarantted by the |
| 11 | language. |