Skip to content

Commit 2832527

Browse files
committed
Refactor TestServer
1 parent b0f9c9a commit 2832527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/util/DiffUtil.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object DiffUtil {
6969
* differences are highlighted.
7070
*/
7171
def mkColoredLineDiff(expected: Seq[String], actual: Seq[String]): String = {
72-
val expectedSize = EOF.length max expected.map(_.length).max
72+
val expectedSize = EOF.length max expected.maxBy(_.length).length
7373
actual.padTo(expected.length, "").zip(expected.padTo(actual.length, "")).map { case (act, exp) =>
7474
mkColoredLineDiff(exp, act, expectedSize)
7575
}.mkString(System.lineSeparator)

0 commit comments

Comments
 (0)