diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-09-01 14:37:53 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-09-01 14:37:53 +0000 |
commit | 582753475422403d112bb3b17c19981fb526644a (patch) | |
tree | cae1ae3c2e3076d91b72fcfc2a8c0b6c306d8786 /test/files/scalacheck/parallel-collections/pc.scala | |
parent | fb950eef1591a0ea5c6b566091bded10032204db (diff) | |
download | scala-582753475422403d112bb3b17c19981fb526644a.tar.gz scala-582753475422403d112bb3b17c19981fb526644a.tar.bz2 scala-582753475422403d112bb3b17c19981fb526644a.zip |
Added scalacheck tests for parallel collections.
Review by phaller (not urgent).
Diffstat (limited to 'test/files/scalacheck/parallel-collections/pc.scala')
-rw-r--r-- | test/files/scalacheck/parallel-collections/pc.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/scalacheck/parallel-collections/pc.scala b/test/files/scalacheck/parallel-collections/pc.scala new file mode 100644 index 0000000000..d369faf804 --- /dev/null +++ b/test/files/scalacheck/parallel-collections/pc.scala @@ -0,0 +1,20 @@ + + + + +import org.scalacheck._ +import scala.collection.parallel._ + + +object ParCollProperties extends Properties("Parallel collections") { + include(mutable.IntParallelArrayCheck) + include(immutable.ParallelRangeCheck) +} + + +object Test { + def main(args: Array[String]) { + val results = org.scalacheck.Test.checkProperties(ParCollProperties) + if (!results.forall(_._2.passed)) println(results) + } +} |