Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
55
iOS/Pods/OCHamcrest/Source/Library/Number/HCIsTrueFalse.m
generated
Normal file
55
iOS/Pods/OCHamcrest/Source/Library/Number/HCIsTrueFalse.m
generated
Normal file
@@ -0,0 +1,55 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCIsTrueFalse.h"
|
||||
|
||||
|
||||
@implementation HCIsTrue
|
||||
|
||||
- (BOOL)matches:(nullable id)item
|
||||
{
|
||||
if (![item isKindOfClass:[NSNumber class]])
|
||||
return NO;
|
||||
|
||||
return [item boolValue];
|
||||
}
|
||||
|
||||
- (void)describeTo:(id <HCDescription>)description
|
||||
{
|
||||
[description appendText:@"true (non-zero)"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
FOUNDATION_EXPORT id HC_isTrue(void)
|
||||
{
|
||||
return [[HCIsTrue alloc] init];
|
||||
}
|
||||
|
||||
|
||||
#pragma mark -
|
||||
|
||||
@implementation HCIsFalse
|
||||
|
||||
- (BOOL)matches:(nullable id)item
|
||||
{
|
||||
if (![item isKindOfClass:[NSNumber class]])
|
||||
return NO;
|
||||
|
||||
return ![item boolValue];
|
||||
}
|
||||
|
||||
- (void)describeTo:(id <HCDescription>)description
|
||||
{
|
||||
[description appendText:@"false (zero)"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
FOUNDATION_EXPORT id HC_isFalse(void)
|
||||
{
|
||||
return [[HCIsFalse alloc] init];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user