Skip to content

Commit e104be1

Browse files
Martijn HoekstraMartijn Hoekstra
Martijn Hoekstra
authored and
Martijn Hoekstra
committed
ignore REPL transscript line ending differences
1 parent 2a2f314 commit e104be1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test/TestREPL.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TestREPL(script: String) extends REPL {
3434
while (lines.hasNext && lines.head.startsWith(continuationPrompt)) {
3535
val continued = lines.next
3636
output.println(continued)
37-
buf append "\n"
37+
buf append System.lineSeparator()
3838
buf append continued.drop(continuationPrompt.length)
3939
}
4040
buf.toString
@@ -49,7 +49,7 @@ class TestREPL(script: String) extends REPL {
4949
out.close()
5050
val printed = out.toString
5151
val transcript = printed.drop(printed.indexOf(config.prompt))
52-
if (transcript.toString != script) {
52+
if (transcript.toString.lines.toList != script.lines.toList) {
5353
println("input differs from transcript:")
5454
println(transcript)
5555
assert(false)

0 commit comments

Comments
 (0)