Skip to content

Instantly share code, notes, and snippets.

@paulp
Created September 19, 2017 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulp/107da4e8f080eb9ddb6eaefb00a1a530 to your computer and use it in GitHub Desktop.
Save paulp/107da4e8f080eb9ddb6eaefb00a1a530 to your computer and use it in GitHub Desktop.
describe("addition") {
it("is communicative") {
forAll { (x: Int, y: Int) =>
(x + y) should equal (y + x)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment