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.
1 parent 2a2f314 commit e104be1Copy full SHA for e104be1
test/test/TestREPL.scala
@@ -34,7 +34,7 @@ class TestREPL(script: String) extends REPL {
34
while (lines.hasNext && lines.head.startsWith(continuationPrompt)) {
35
val continued = lines.next
36
output.println(continued)
37
- buf append "\n"
+ buf append System.lineSeparator()
38
buf append continued.drop(continuationPrompt.length)
39
}
40
buf.toString
@@ -49,7 +49,7 @@ class TestREPL(script: String) extends REPL {
49
out.close()
50
val printed = out.toString
51
val transcript = printed.drop(printed.indexOf(config.prompt))
52
- if (transcript.toString != script) {
+ if (transcript.toString.lines.toList != script.lines.toList) {
53
println("input differs from transcript:")
54
println(transcript)
55
assert(false)
0 commit comments