Created
July 11, 2013 08:32
-
-
Save CliveEvans/5973623 to your computer and use it in GitHub Desktop.
Simple Property Spec
This file contains 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
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