// OCHamcrest by Jon Reid, https://qualitycoding.org/ // Copyright 2019 hamcrest.org. See LICENSE.txt #import NS_ASSUME_NONNULL_BEGIN /*! * @abstract Is the value equal to another value, as tested by the -isEqual: method? */ @interface HCIsEqual : HCBaseMatcher - (instancetype)initEqualTo:(nullable id)expectedValue NS_DESIGNATED_INITIALIZER; - (instancetype)init NS_UNAVAILABLE; @end FOUNDATION_EXPORT id HC_equalTo(_Nullable id operand); #ifndef HC_DISABLE_SHORT_SYNTAX /*! * @abstract Creates a matcher that matches when the examined object is equal to the specified * object, as determined by calling the -isEqual: method on the examined object. * @param operand The object to compare against as the expected value. * @discussion If the specified operand is nil, then the created matcher will match if * the examined object itself is nil, or if the examined object's -isEqual: * method returns YES when passed a nil. * * Name Clash
* In the event of a name clash, #define HC_DISABLE_SHORT_SYNTAX and use the synonym * HC_equalTo instead. */ static inline id equalTo(_Nullable id operand) { return HC_equalTo(operand); } #endif NS_ASSUME_NONNULL_END