summaryrefslogtreecommitdiff
path: root/test/files/scalacheck/scan.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-10-04 14:05:35 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-10-04 14:05:35 +0000
commite0372eddc160678010c2b45be84a04af81ff63e5 (patch)
tree31e038214ab23033d44f9202ae3525552be6541e /test/files/scalacheck/scan.scala
parent9e21fe6c690e31f2e3fe079e386f4d440935c09e (diff)
downloadscala-e0372eddc160678010c2b45be84a04af81ff63e5.tar.gz
scala-e0372eddc160678010c2b45be84a04af81ff63e5.tar.bz2
scala-e0372eddc160678010c2b45be84a04af81ff63e5.zip
Fixed a scalacheck test group "test entire subd...
Fixed a scalacheck test group "test entire subdirectory" problem. It's now possible to add scalacheck tests consisting of multiple files. No review.
Diffstat (limited to 'test/files/scalacheck/scan.scala')
-rw-r--r--test/files/scalacheck/scan.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/scalacheck/scan.scala b/test/files/scalacheck/scan.scala
index e9b25ce3df..fc214d739c 100644
--- a/test/files/scalacheck/scan.scala
+++ b/test/files/scalacheck/scan.scala
@@ -3,6 +3,8 @@ import Prop._
import Gen._
+
+
object Test extends Properties("TraversableLike.scanLeft") {
property("scanLeft") = forAll { (xs: List[Int], z: Int) => {
val sums = xs.scanLeft(z)(_ + _)