diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-10-20 20:20:00 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-10-20 20:20:00 +0000 |
commit | e7ca142b45255f6b41582c25fe590a664d5fc8b9 (patch) | |
tree | a674b7cc69ad247330d444f4011a55d6a7ce61e2 /test/files/scalacheck/parallel-collections/pc.scala | |
parent | d3d218e5ea77584489437f0dfa8148ee3764d6f7 (diff) | |
download | scala-e7ca142b45255f6b41582c25fe590a664d5fc8b9.tar.gz scala-e7ca142b45255f6b41582c25fe590a664d5fc8b9.tar.bz2 scala-e7ca142b45255f6b41582c25fe590a664d5fc8b9.zip |
Some exception handling fixes in parallel colle...
Some exception handling fixes in parallel collections. Fixed some
regressions. Fixed some tests.
No review.
Diffstat (limited to 'test/files/scalacheck/parallel-collections/pc.scala')
-rw-r--r-- | test/files/scalacheck/parallel-collections/pc.scala | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/test/files/scalacheck/parallel-collections/pc.scala b/test/files/scalacheck/parallel-collections/pc.scala index f77c6db435..04b7168286 100644 --- a/test/files/scalacheck/parallel-collections/pc.scala +++ b/test/files/scalacheck/parallel-collections/pc.scala @@ -3,21 +3,46 @@ import org.scalacheck._ + import scala.collection.parallel._ class ParCollProperties extends Properties("Parallel collections") { + /* Collections */ + // parallel arrays //include(mutable.IntParallelArrayCheck) // parallel ranges //include(immutable.ParallelRangeCheck) + + // parallel immutable hash maps (tries) + include(immutable.IntIntParallelHashMapCheck) + + // parallel immutable hash sets (tries) + + // parallel mutable hash maps (tables) + + + /* Views */ + + // parallel array views + + // parallel immutable hash map views + + // parallel mutable hash map views } object Test { def main(args: Array[String]) { - val results = org.scalacheck.Test.checkProperties(new ParCollProperties) - if (!results.forall(_._2.passed)) println("Test results: " + results.mkString("\n")) + val pc = new ParCollProperties + org.scalacheck.Test.checkProperties( + org.scalacheck.Test.Params( + rng = new java.util.Random(5134L), + testCallback = new ConsoleReporter(0) + ), + pc + ) } } |