File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compiler/test/dotty/tools/vulpix Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -761,7 +761,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
761
761
762
762
def reporterOutputLines (reporter : TestReporter ): List [String ] = {
763
763
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
765
765
}
766
766
}
767
767
def checkFileTest (sourceName : String , checkFile : JFile , actual : List [String ]) = {
@@ -851,9 +851,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
851
851
852
852
def diffMessage (sourceTitle : String , outputLines : Seq [String ], checkLines : Seq [String ]): Option [String ] = {
853
853
def linesMatch =
854
- outputLines
855
- .zip(checkLines)
856
- .forall { case (x, y) => x == y }
854
+ (outputLines, checkLines).zipped.forall(_ == _)
857
855
858
856
if (outputLines.length != checkLines.length || ! linesMatch) {
859
857
// Print diff to files and summary:
You can’t perform that action at this time.
0 commit comments