bolt/deps/llvm-18.1.8/clang-tools-extra/docs/clang-tidy/checks/objc/assert-equals.rst

12 lines
391 B
ReStructuredText
Raw Normal View History

2025-02-14 19:21:04 +01:00
.. title:: clang-tidy - objc-assert-equals
objc-assert-equals
==================
Finds improper usages of `XCTAssertEqual` and `XCTAssertNotEqual` and replaces
them with `XCTAssertEqualObjects` or `XCTAssertNotEqualObjects`.
This makes tests less fragile, as many improperly rely on pointer equality for
strings that have equal values. This assumption is not guaranteed by the
language.