diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-09-01 14:37:53 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-09-01 14:37:53 +0000 |
commit | 582753475422403d112bb3b17c19981fb526644a (patch) | |
tree | cae1ae3c2e3076d91b72fcfc2a8c0b6c306d8786 /test/files/scalacheck/parallel-collections/Operators.scala | |
parent | fb950eef1591a0ea5c6b566091bded10032204db (diff) | |
download | scala-582753475422403d112bb3b17c19981fb526644a.tar.gz scala-582753475422403d112bb3b17c19981fb526644a.tar.bz2 scala-582753475422403d112bb3b17c19981fb526644a.zip |
Added scalacheck tests for parallel collections.
Review by phaller (not urgent).
Diffstat (limited to 'test/files/scalacheck/parallel-collections/Operators.scala')
-rw-r--r-- | test/files/scalacheck/parallel-collections/Operators.scala | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/files/scalacheck/parallel-collections/Operators.scala b/test/files/scalacheck/parallel-collections/Operators.scala new file mode 100644 index 0000000000..538cc23325 --- /dev/null +++ b/test/files/scalacheck/parallel-collections/Operators.scala @@ -0,0 +1,35 @@ +package scala.collection.parallel + + + + +trait Operators[T] { + def reduceOperators: List[(T, T) => T] + def countPredicates: List[T => Boolean] + def forallPredicates: List[T => Boolean] + def existsPredicates: List[T => Boolean] + def findPredicates: List[T => Boolean] + def mapFunctions: List[T => T] + def partialMapFunctions: List[PartialFunction[T, T]] + def flatMapFunctions: List[T => Traversable[T]] + def filterPredicates: List[T => Boolean] + def filterNotPredicates: List[T => Boolean] + def partitionPredicates: List[T => Boolean] + def takeWhilePredicates: List[T => Boolean] + def dropWhilePredicates: List[T => Boolean] + def spanPredicates: List[T => Boolean] + def foldArguments: List[(T, (T, T) => T)] + def addAllTraversables: List[Traversable[T]] + def newArray(sz: Int): Array[T] +} + + + +trait SeqOperators[T] extends Operators[T] { + def segmentLengthPredicates: List[T => Boolean] + def indexWherePredicates: List[T => Boolean] + def lastIndexWherePredicates: List[T => Boolean] + def reverseMapFunctions: List[T => T] + def sameElementsSeqs: List[Seq[T]] + def startEndSeqs: List[Seq[T]] +}
\ No newline at end of file |