We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
linesIterator
split(EOL)
1 parent 44fd0b1 commit be41796Copy full SHA for be41796
compiler/test/dotty/tools/repl/ReplCompilerTests.scala
@@ -1,13 +1,12 @@
1
package dotty.tools.repl
2
3
-import java.lang.System.{lineSeparator => EOL}
4
-
5
import org.junit.Assert._
6
import org.junit.{Ignore, Test}
7
8
class ReplCompilerTests extends ReplTest {
9
10
- private def lines() = storedOutput().split(EOL).toList
+ private def lines() =
+ storedOutput().trim.linesIterator.toList
11
12
@Test def compileSingle = fromInitialState { implicit state =>
13
run("def foo: 1 = 1")
0 commit comments