From 7c589dcde6cfff6010f2837bdd1d33459dec5f58 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 16 Sep 2009 18:49:29 +0000 Subject: The first working scalacheck test! Now Arbitrar... The first working scalacheck test! Now Arbitrary is working for us instead of our nemesis Capt. Entropy. --- test/files/scalacheck/list.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/scalacheck/list.scala (limited to 'test/files/scalacheck') diff --git a/test/files/scalacheck/list.scala b/test/files/scalacheck/list.scala new file mode 100644 index 0000000000..bf38626d45 --- /dev/null +++ b/test/files/scalacheck/list.scala @@ -0,0 +1,7 @@ +import org.scalacheck._ +import Prop._ + +object Test extends Properties("List") { + property("concat") = forAll { (l1: List[Int], l2: List[Int]) => (l1.size + l2.size) == (l1 ::: l2).size } +} + -- cgit v1.2.3