mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-29 09:01:05 +00:00
43 lines
990 B
Objective-C
43 lines
990 B
Objective-C
//
|
|
// OCHamcrest - HCIsIn.h
|
|
// Copyright 2013 hamcrest.org. See LICENSE.txt
|
|
//
|
|
// Created by: Jon Reid, http://qualitycoding.org/
|
|
// Docs: http://hamcrest.github.com/OCHamcrest/
|
|
// Source: https://github.com/hamcrest/OCHamcrest
|
|
//
|
|
|
|
#import <OCHamcrestIOS/HCBaseMatcher.h>
|
|
|
|
|
|
@interface HCIsIn : HCBaseMatcher
|
|
{
|
|
id collection;
|
|
}
|
|
|
|
+ (instancetype)isInCollection:(id)aCollection;
|
|
- (instancetype)initWithCollection:(id)aCollection;
|
|
|
|
@end
|
|
|
|
|
|
OBJC_EXPORT id<HCMatcher> HC_isIn(id aCollection);
|
|
|
|
/**
|
|
isIn(aCollection) -
|
|
Matches if evaluated object is present in a given collection.
|
|
|
|
@param aCollection The collection to search.
|
|
|
|
This matcher invokes @c -containsObject: on @a aCollection to determine if the evaluated object
|
|
is an element of the collection.
|
|
|
|
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym
|
|
@c HC_isIn instead.)
|
|
|
|
@ingroup collection_matchers
|
|
*/
|
|
#ifdef HC_SHORTHAND
|
|
#define isIn HC_isIn
|
|
#endif
|