Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
28
Pods/OCHamcrest/Source/Library/Text/HCStringStartsWith.m
generated
Normal file
28
Pods/OCHamcrest/Source/Library/Text/HCStringStartsWith.m
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCStringStartsWith.h"
|
||||
|
||||
|
||||
@implementation HCStringStartsWith
|
||||
|
||||
- (BOOL)matches:(nullable id)item
|
||||
{
|
||||
if (![item respondsToSelector:@selector(hasPrefix:)])
|
||||
return NO;
|
||||
|
||||
return [item hasPrefix:self.substring];
|
||||
}
|
||||
|
||||
- (NSString *)relationship
|
||||
{
|
||||
return @"starting with";
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
id HC_startsWith(NSString *prefix)
|
||||
{
|
||||
return [[HCStringStartsWith alloc] initWithSubstring:prefix];
|
||||
}
|
||||
Reference in New Issue
Block a user