diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-09-10 12:21:19 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-09-10 12:21:19 +0000 |
commit | 350ba559f1607e6650bbc19613062c835ce07876 (patch) | |
tree | 88131b83235917c909b5bf30bc6b3d03d9f59dff /test | |
parent | a9a27eaea656e2425d51e4fc34d037b50496c69e (diff) | |
download | scala-350ba559f1607e6650bbc19613062c835ce07876.tar.gz scala-350ba559f1607e6650bbc19613062c835ce07876.tar.bz2 scala-350ba559f1607e6650bbc19613062c835ce07876.zip |
Added sample/starter ScalaCheck test
Diffstat (limited to 'test')
-rw-r--r-- | test/files/scalacheck/list.scala | 10 |
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)) +} + |