Skip to content

Commit ab4ff69

Browse files
committed
More refactorings
1 parent b4fef61 commit ab4ff69

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
761761

762762
def reporterOutputLines(reporter: TestReporter): List[String] = {
763763
reporter.allErrors.flatMap { error =>
764-
(error.pos.span.toString + " in " + error.pos.source.file.name) :: error.getMessage().split("\n").toList
764+
(error.pos.span.toString + " in " + error.pos.source.file.name) :: error.getMessage().lines.toList
765765
}
766766
}
767767
def checkFileTest(sourceName: String, checkFile: JFile, actual: List[String]) = {
@@ -851,9 +851,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
851851

852852
def diffMessage(sourceTitle: String, outputLines: Seq[String], checkLines: Seq[String]): Option[String] = {
853853
def linesMatch =
854-
outputLines
855-
.zip(checkLines)
856-
.forall { case (x, y) => x == y }
854+
(outputLines, checkLines).zipped.forall(_ == _)
857855

858856
if (outputLines.length != checkLines.length || !linesMatch) {
859857
// Print diff to files and summary:

0 commit comments

Comments
 (0)