diff options
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 + ) } } |