summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-24 17:18:03 +0000
committerPaul Phillips <paulp@improving.org>2010-03-24 17:18:03 +0000
commita09cf5dbf7ed64e1ff52bebb53971d16304b58e5 (patch)
tree1fc48d708f2768e5135814bf5763c2ab87b04484 /src/partest
parentd43ccc679de41aca085072d96a61e363e5e23e34 (diff)
downloadscala-a09cf5dbf7ed64e1ff52bebb53971d16304b58e5.tar.gz
scala-a09cf5dbf7ed64e1ff52bebb53971d16304b58e5.tar.bz2
scala-a09cf5dbf7ed64e1ff52bebb53971d16304b58e5.zip
Renamed partialMap to collect.
method on Iterator called collect which I had to remove, because if the method is overloaded it puts a bullet in the type inference, an intolerable result for a function which takes a partial function as its argument. I don't think there's much chance of confusion, but I put a migration warning on collect just in case. No review.
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/PartestTask.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partest/scala/tools/partest/PartestTask.scala b/src/partest/scala/tools/partest/PartestTask.scala
index afe685a443..96802370fc 100644
--- a/src/partest/scala/tools/partest/PartestTask.scala
+++ b/src/partest/scala/tools/partest/PartestTask.scala
@@ -236,7 +236,7 @@ class PartestTask extends Task with CompilationPathProperty {
val results: Iterable[(String, Int)] = antRunner.reflectiveRunTestsForFiles(files, name)
val (succs, fails) = resultsToStatistics(results)
- val failed: Iterable[String] = results partialMap {
+ val failed: Iterable[String] = results collect {
case (path, 1) => path + " [FAILED]"
case (path, 2) => path + " [TIMOUT]"
}