Skip to content

Instantly share code, notes, and snippets.

@CliveEvans
Created July 11, 2013 08:32
Show Gist options
  • Save CliveEvans/5973623 to your computer and use it in GitHub Desktop.
Save CliveEvans/5973623 to your computer and use it in GitHub Desktop.
Simple Property Spec
class SimplePropertySpec extends Specification with ScalaCheck {
"the property test" should {
"prove addition and multiplication are related" in {
forAll{(a: Int) => a+a must_== 2*a}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment