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