diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-10-20 20:20:08 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-10-20 20:20:08 +0000 |
commit | b689b912caa0e1bcd981c1a0092857ac83fb1e1d (patch) | |
tree | 194b115ae192b472baf904de14f7c61bce6af915 /test/files/scalacheck/parallel-collections/IntOperators.scala | |
parent | b1d9354a08107afab9c15d2ae1b8dded82b5ffef (diff) | |
download | scala-b689b912caa0e1bcd981c1a0092857ac83fb1e1d.tar.gz scala-b689b912caa0e1bcd981c1a0092857ac83fb1e1d.tar.bz2 scala-b689b912caa0e1bcd981c1a0092857ac83fb1e1d.zip |
Some serious hash tries bugs fixed.
Plus one wild goose chase and test fixes.
No review.
Diffstat (limited to 'test/files/scalacheck/parallel-collections/IntOperators.scala')
-rw-r--r-- | test/files/scalacheck/parallel-collections/IntOperators.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/scalacheck/parallel-collections/IntOperators.scala b/test/files/scalacheck/parallel-collections/IntOperators.scala index e330bec985..bd937808db 100644 --- a/test/files/scalacheck/parallel-collections/IntOperators.scala +++ b/test/files/scalacheck/parallel-collections/IntOperators.scala @@ -11,7 +11,7 @@ trait IntOperators extends Operators[Int] { def existsPredicates = List(_ >= 0, _ < 0, _ % 2 == 0, _ == 55, _ == 505, _ == 5005) def findPredicates = List(_ >= 0, _ % 2 == 0, _ < 0, _ == 50, _ == 500, _ == 5000) def mapFunctions = List(-_) - def partialMapFunctions = List({case x => -x}, { case 0 => -1; case x if x > 0 => x + 1}) + def partialMapFunctions = List({case x => -x}, { case 0 => -1; case x if x > 0 => x + 1}, {case x if x % 3 == 0 => x / 3}) def flatMapFunctions = List( (n: Int) => if (n < 0) List() else if (n % 2 == 0) List(1, 2, 3) else List(4, 5, 6), (n: Int) => List[Int](), |