Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbfc469

Browse files
Prefer linesIterator over split(EOL)
1 parent 0f182b4 commit cbfc469

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎compiler/test/dotty/tools/repl/ReplCompilerTests.scala‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package dotty.tools.repl
22

3-
import java.lang.System.{lineSeparator => EOL}
4-
53
import org.junit.Assert._
64
import org.junit.{Ignore, Test}
75

86
class ReplCompilerTests extends ReplTest {
97

10-
private def lines() = storedOutput().split(EOL).toList
8+
private def lines() =
9+
storedOutput().trim.linesIterator.toList
1110

1211
@Test def compileSingle = fromInitialState { implicit state =>
1312
run("def foo: 1 = 1")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /