summaryrefslogtreecommitdiff
path: root/test/files/scalacheck
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-09-10 12:21:19 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-09-10 12:21:19 +0000
commit350ba559f1607e6650bbc19613062c835ce07876 (patch)
tree88131b83235917c909b5bf30bc6b3d03d9f59dff /test/files/scalacheck
parenta9a27eaea656e2425d51e4fc34d037b50496c69e (diff)
downloadscala-350ba559f1607e6650bbc19613062c835ce07876.tar.gz
scala-350ba559f1607e6650bbc19613062c835ce07876.tar.bz2
scala-350ba559f1607e6650bbc19613062c835ce07876.zip
Added sample/starter ScalaCheck test
Diffstat (limited to 'test/files/scalacheck')
-rw-r--r--test/files/scalacheck/list.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/scalacheck/list.scala b/test/files/scalacheck/list.scala
new file mode 100644
index 0000000000..93d3a59458
--- /dev/null
+++ b/test/files/scalacheck/list.scala
@@ -0,0 +1,10 @@
+import org.scalacheck._
+import Prop._
+
+object Test {
+ val prop_ConcatLists =
+ property((l1: List[Int], l2: List[Int]) => (l1.size + l2.size) == (l1 ::: l2).size)
+
+ val tests = List(("ConcatLists", prop_ConcatLists))
+}
+