Skip to content

Commit

Permalink
Minor fix for java11 .lines in scala-dynamic testfile DynamicSuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
er1c committed Feb 6, 2019
1 parent 77a5f25 commit 68716fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scalafmt-dynamic/src/test/scala/tests/DynamicSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ class DynamicSuite extends FunSuite with DiffAssertions {
out.toString.replaceAllLiterally(config.toString, "path/.scalafmt.conf")
}
def errors: String = {
out.toString.lines.filter(_.startsWith("error")).mkString("\n")
// work around scala/bug#11125
scala.Predef
.augmentString(out.toString)
.lines
.filter(_.startsWith("error"))
.mkString("\n")
}
def assertNotIgnored(filename: String)(implicit pos: Position): Unit = {
assertFormat(
Expand Down

0 comments on commit 68716fc

Please sign in to comment.