Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
43
iOS/Pods/OCHamcrest/Source/Library/Logical/HCIsNot.m
generated
Normal file
43
iOS/Pods/OCHamcrest/Source/Library/Logical/HCIsNot.m
generated
Normal file
@@ -0,0 +1,43 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCIsNot.h"
|
||||
|
||||
#import "HCWrapInMatcher.h"
|
||||
|
||||
|
||||
@interface HCIsNot ()
|
||||
@property (nonatomic, strong, readonly) id <HCMatcher> matcher;
|
||||
@end
|
||||
|
||||
@implementation HCIsNot
|
||||
|
||||
- (instancetype)initWithMatcher:(id <HCMatcher>)matcher
|
||||
{
|
||||
self = [super init];
|
||||
if (self)
|
||||
_matcher = matcher;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (BOOL)matches:(nullable id)item
|
||||
{
|
||||
return ![self.matcher matches:item];
|
||||
}
|
||||
|
||||
- (void)describeTo:(id <HCDescription>)description
|
||||
{
|
||||
[[description appendText:@"not "] appendDescriptionOf:self.matcher];
|
||||
}
|
||||
|
||||
- (void)describeMismatchOf:(nullable id)item to:(nullable id <HCDescription>)mismatchDescription
|
||||
{
|
||||
[self.matcher describeMismatchOf:item to:mismatchDescription];
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
id HC_isNot(_Nullable id value)
|
||||
{
|
||||
return [[HCIsNot alloc] initWithMatcher:HCWrapInMatcher(value)];
|
||||
}
|
||||
Reference in New Issue
Block a user