Sha256: ee3f52a627de2ea273bce9efdd77f3e0dc93ce5971616b76815ba14091eb8828
Contents?: true
Size: 752 Bytes
Versions: 8
Compression:
Stored size: 752 Bytes
Contents
#import "EXPMatchers+beLessThanOrEqualTo.h" #import "EXPMatcherHelpers.h" EXPMatcherImplementationBegin(_beLessThanOrEqualTo, (id expected)) { match(^BOOL{ if ([actual respondsToSelector:@selector(compare:)]) { return [actual compare:expected] != NSOrderedDescending; } return NO; }); failureMessageForTo(^NSString *{ return [NSString stringWithFormat:@"expected: %@ to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; }); failureMessageForNotTo(^NSString *{ return [NSString stringWithFormat:@"expected: %@ not to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; }); } EXPMatcherImplementationEnd
Version data entries
8 entries across 8 versions & 2 rubygems