Sha256: fcfb27ac03455c45786cf765bde0c96e2ea153be315eb56e9addfd0162b1326a

Contents?: true

Size: 709 Bytes

Versions: 8

Compression:

Stored size: 709 Bytes

Contents

#import "EXPMatchers+beLessThan.h"
#import "EXPMatcherHelpers.h"

EXPMatcherImplementationBegin(_beLessThan, (id expected)) {
    match(^BOOL{
        if ([actual respondsToSelector:@selector(compare:)]) {
            return [actual compare:expected] == NSOrderedAscending;
        }
        return NO;
    });

    failureMessageForTo(^NSString *{
        return [NSString stringWithFormat:@"expected: %@ to be less than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)];
    });

    failureMessageForNotTo(^NSString *{
        return [NSString stringWithFormat:@"expected: %@ not to be less than %@", 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+beLessThan.m
second_curtain-0.5.0 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m
second_curtain-0.4.0 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m
second_curtain-0.3.0 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m
cocoapods-deintegrate-0.2.1 spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m
cocoapods-deintegrate-0.2.0 spec/fixtures/Project/StaticLibraries/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m
second_curtain-0.2.4 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m
second_curtain-0.2.3 Demo/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m