// OCHamcrest by Jon Reid, https://qualitycoding.org/ // Copyright 2019 hamcrest.org. See LICENSE.txt #import NS_ASSUME_NONNULL_BEGIN /*! * @abstract Matches empty collections. */ @interface HCIsEmptyCollection : HCHasCount - (instancetype)init; @end FOUNDATION_EXPORT id HC_isEmpty(void); #ifndef HC_DISABLE_SHORT_SYNTAX /*! * @abstract Creates a matcher that matches any examined object whose -count method * returns zero. * * Example
*
assertThat(\@[], isEmpty())
* * Name Clash
* In the event of a name clash, #define HC_DISABLE_SHORT_SYNTAX and use the synonym * HC_isEmpty instead. */ static inline id isEmpty(void) { return HC_isEmpty(); } #endif NS_ASSUME_NONNULL_END