Files
MonsterCards/iOS/Pods/OCHamcrest/Source/Library/Collection/HCIsEmptyCollection.m
Tom Hicks c3031fbc39 Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
2020-09-05 22:06:51 -07:00

34 lines
670 B
Objective-C

// 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];
}