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

48 lines
801 B
Objective-C

// OCHamcrest by Jon Reid, https://qualitycoding.org/
// Copyright 2019 hamcrest.org. See LICENSE.txt
#import "HCIsAnything.h"
@implementation HCIsAnything
{
NSString *_description;
}
- (instancetype)init
{
self = [self initWithDescription:@"ANYTHING"];
return self;
}
- (instancetype)initWithDescription:(NSString *)description
{
self = [super init];
if (self)
_description = [description copy];
return self;
}
- (BOOL)matches:(nullable id)item
{
return YES;
}
- (void)describeTo:(id <HCDescription>)aDescription
{
[aDescription appendText:_description];
}
@end
id HC_anything()
{
return [[HCIsAnything alloc] init];
}
id HC_anythingWithDescription(NSString *description)
{
return [[HCIsAnything alloc] initWithDescription:description];
}