Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/Spry/Matchers/beGreaterThan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public func beGreaterThan<T: Comparable>(_ expectedValue: T?) -> Matcher<T> {

/// A Nimble matcher that succeeds when the actual value is greater than the expected value.
@discardableResult
public func ><T: Comparable>(lhs: Expectation<T>, rhs: T) -> Color {
public func ><T: Comparable>(lhs: Expectation<T>, rhs: T) -> ExpectationResult {
return lhs.to(beGreaterThan(rhs))
}
2 changes: 1 addition & 1 deletion Source/Spry/Matchers/beGreaterThanOrEqualTo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public func beGreaterThanOrEqualTo<T: Comparable>(_ expectedValue: T?) -> Matche
/// A Nimble matcher that succeeds when the actual value is greater than
/// or equal to the expected value.
@discardableResult
public func >=<T: Comparable>(lhs: Expectation<T>, rhs: T) -> Color {
public func >=<T: Comparable>(lhs: Expectation<T>, rhs: T) -> ExpectationResult {
return lhs.to(beGreaterThanOrEqualTo(rhs))
}
2 changes: 1 addition & 1 deletion Source/Spry/Matchers/beLessThanOrEqual.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public func beLessThanOrEqualTo<T: Comparable>(_ expectedValue: T?) -> Matcher<T
/// A Nimble matcher that succeeds when the actual value is less than
/// or equal to the expected value.
@discardableResult
public func <=<T: Comparable>(lhs: Expectation<T>, rhs: T) -> Color {
public func <=<T: Comparable>(lhs: Expectation<T>, rhs: T) -> ExpectationResult {
return lhs.to(beLessThanOrEqualTo(rhs))
}