Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
34
iOS/Pods/OCHamcrest/Source/Library/Text/HCSubstringMatcher.m
generated
Normal file
34
iOS/Pods/OCHamcrest/Source/Library/Text/HCSubstringMatcher.m
generated
Normal file
@@ -0,0 +1,34 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCSubstringMatcher.h"
|
||||
|
||||
#import "HCRequireNonNilObject.h"
|
||||
|
||||
|
||||
@interface HCSubstringMatcher (SubclassResponsibility)
|
||||
- (NSString *)relationship;
|
||||
@end
|
||||
|
||||
|
||||
@implementation HCSubstringMatcher
|
||||
|
||||
- (instancetype)initWithSubstring:(NSString *)substring
|
||||
{
|
||||
HCRequireNonNilObject(substring);
|
||||
|
||||
self = [super init];
|
||||
if (self)
|
||||
_substring = [substring copy];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)describeTo:(id <HCDescription>)description
|
||||
{
|
||||
[[[[description appendText:@"a string "]
|
||||
appendText:[self relationship]]
|
||||
appendText:@" "]
|
||||
appendDescriptionOf:self.substring];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user