Created
August 19, 2017 17:44
-
-
Save tovkal/5a99315246af0f42805b7958a7044354 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private func beInitial() -> Predicate<SearchTableViewController.State> { | |
return Predicate.define("be <initial>") { expression, message in | |
if let actual = try expression.evaluate(), case .initial = actual { | |
return PredicateResult(status: .matches, message: message) | |
} | |
return PredicateResult(status: .fail, message: message) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment