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

Version Path
second_curtain-0.6.0 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m
second_curtain-0.5.0 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m
second_curtain-0.4.0 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m
second_curtain-0.3.0 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m
cocoapods-deintegrate-0.2.1 spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m
cocoapods-deintegrate-0.2.0 spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m
second_curtain-0.2.4 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m
second_curtain-0.2.3 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m