Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
33
Pods/OCHamcrest/Source/Library/Collection/HCIsEmptyCollection.m
generated
Normal file
33
Pods/OCHamcrest/Source/Library/Collection/HCIsEmptyCollection.m
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCIsEmptyCollection.h"
|
||||
|
||||
#import "HCIsEqual.h"
|
||||
|
||||
|
||||
@implementation HCIsEmptyCollection
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [super initWithMatcher:HC_equalTo(@0)];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)describeMismatchOf:(nullable id)item to:(nullable id <HCDescription>)mismatchDescription
|
||||
{
|
||||
[[mismatchDescription appendText:@"was "] appendDescriptionOf:item];
|
||||
}
|
||||
|
||||
- (void)describeTo:(id <HCDescription>)description
|
||||
{
|
||||
[description appendText:@"empty collection"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
FOUNDATION_EXPORT id HC_isEmpty(void)
|
||||
{
|
||||
return [[HCIsEmptyCollection alloc] init];
|
||||
}
|
||||
Reference in New Issue
Block a user