PredicateResult
public struct PredicateResult
The value that a Predicates return to describe if the given (actual) value matches the predicate.
-
Status indicates if the predicate matches, does not match, or fails.
Declaration
Swift
public var status: PredicateStatus
-
The error message that can be displayed if it does not match
Declaration
Swift
public var message: ExpectationMessage
-
Constructs a new PredicateResult with a given status and error message
Declaration
Swift
public init(status: PredicateStatus, message: ExpectationMessage)
-
Shorthand to PredicateResult(status: PredicateStatus(bool: bool), message: message)
Declaration
Swift
public init(bool: Bool, message: ExpectationMessage)
-
Converts the result to a boolean based on what the expectation intended
Declaration
Swift
public func toBoolean(expectation style: ExpectationStyle) -> Bool
-
Undocumented
Declaration
Swift
public func toObjectiveC() -> NMBPredicateResult