Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Created November 5, 2017 16:44
Show Gist options
  • Save olbrichj/070acd386a83b2ded4ea9f87db683010 to your computer and use it in GitHub Desktop.
Save olbrichj/070acd386a83b2ded4ea9f87db683010 to your computer and use it in GitHub Desktop.
// our algorithm has this signature
func isCorrectEmail(email Email) -> Bool
property("emails should always be correct") <- forAll { (email: Email) in
return isCorrectEmail(email)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment