Skip to content

Commit

Permalink
StringOps.lines => StringOps#linesIterator, see scala/bug#11125
Browse files Browse the repository at this point in the history
  • Loading branch information
basinilya committed Sep 13, 2021
1 parent 534bdaa commit 045bac2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class SimpleTreePrinterTest extends WordSpecLike with Matchers {

def test(tree: Tree, expected: String) = {
val printed: String = new SimpleTreePrinter().printTree(tree)
val expectedWithoutEmptyLines = expected.lines.filter(!_.trim.isEmpty).mkString("\n")
val expectedWithoutEmptyLines = expected.linesIterator.filter(!_.trim.isEmpty).mkString("\n")
printed shouldBe expectedWithoutEmptyLines
}

Expand Down

0 comments on commit 045bac2

Please sign in to comment.