summaryrefslogtreecommitdiff
path: root/test/files/scalacheck/parallel-collections/pc.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/parallel-collections/pc.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/parallel-collections/pc.scala')
-rw-r--r--test/files/scalacheck/parallel-collections/pc.scala20
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..ffc5eff78b
--- /dev/null
+++ b/test/files/scalacheck/parallel-collections/pc.scala
@@ -0,0 +1,20 @@
+
+
+
+
+import org.scalacheck._
+import scala.collection.parallel._
+
+
+class ParCollProperties extends Properties("Parallel collections") {
+ // parallel arrays
+ include(mutable.IntParallelArrayCheck)
+}
+
+
+object Test {
+ def main(args: Array[String]) {
+ val results = org.scalacheck.Test.checkProperties(new ParCollProperties)
+ if (!results.forall(_._2.passed)) println(results)
+ }
+}