|
Scala example source code file (pc.scala)
The Scala pc.scala source code
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)
include(immutable.IntParallelHashSetCheck)
// parallel mutable hash maps (tables)
include(mutable.IntIntParallelHashMapCheck)
// parallel mutable hash sets (tables)
include(mutable.IntParallelHashSetCheck)
// parallel vectors
include(immutable.IntParallelVectorCheck)
}
object Test {
def main(args: Array[String]) {
val pc = new ParCollProperties
org.scalacheck.Test.checkProperties(
org.scalacheck.Test.Params(
rng = new java.util.Random(5134L),
testCallback = new ConsoleReporter(0),
workers = 1,
minSize = 0,
maxSize = 4000,
minSuccessfulTests = 5
),
pc
)
}
}
Other Scala examples (source code examples)Here is a short list of links related to this Scala pc.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.