Skip to content

Instantly share code, notes, and snippets.

@kelseyq
kelseyq / gist:d4a2c73a41609c563ad1
Last active Jan 24, 2016
witchy ScalaCheck examples
View gist:d4a2c73a41609c563ad1
import org.scalacheck.Prop.forAll
import org.scalacheck.Properties
object ShakespeareSpec extends Properties("Bubble") {
def spell(words: List[String], mysticNumber: Int) =
mysticNumber.toString +
words.mkString + "toil" + "trouble"
property("bubble") = forAll { (a: List[String], b: Int) =>