blob: 977fe4b1306261ca9c643f675e510e8a19a6f131 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import org.scalacheck._
import scala.collection.parallel._
class ParCollProperties extends Properties("Parallel collections") {
// parallel arrays
include(mutable.IntParallelArrayCheck)
// parallel ranges
include(immutable.ParallelRangeCheck)
}
object Test {
def main(args: Array[String]) {
val results = org.scalacheck.Test.checkProperties(new ParCollProperties)
if (!results.forall(_._2.passed)) println(results)
}
}
|