aboutsummaryrefslogtreecommitdiff
path: root/test/test/TestREPL.scala
diff options
context:
space:
mode:
authorMartijn Hoekstra <martijn.hoekstra@cargoxs.com>2016-08-26 11:09:07 +0200
committerMartijn Hoekstra <Martijn Hoekstra>2016-09-07 21:28:50 +0200
commite104be1fc10231bc3189573bc4229cc68501daf1 (patch)
treee4f8e1b426ce85accc70c6a269f2ee4a16266c75 /test/test/TestREPL.scala
parent2a2f314ebcb1990f334f78f2ca933d197286c6b2 (diff)
downloaddotty-e104be1fc10231bc3189573bc4229cc68501daf1.tar.gz
dotty-e104be1fc10231bc3189573bc4229cc68501daf1.tar.bz2
dotty-e104be1fc10231bc3189573bc4229cc68501daf1.zip
ignore REPL transscript line ending differences
Diffstat (limited to 'test/test/TestREPL.scala')
-rw-r--r--test/test/TestREPL.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test/TestREPL.scala b/test/test/TestREPL.scala
index 1ba456ce2..9867cb4ec 100644
--- a/test/test/TestREPL.scala
+++ b/test/test/TestREPL.scala
@@ -34,7 +34,7 @@ class TestREPL(script: String) extends REPL {
while (lines.hasNext && lines.head.startsWith(continuationPrompt)) {
val continued = lines.next
output.println(continued)
- buf append "\n"
+ buf append System.lineSeparator()
buf append continued.drop(continuationPrompt.length)
}
buf.toString
@@ -49,7 +49,7 @@ class TestREPL(script: String) extends REPL {
out.close()
val printed = out.toString
val transcript = printed.drop(printed.indexOf(config.prompt))
- if (transcript.toString != script) {
+ if (transcript.toString.lines.toList != script.lines.toList) {
println("input differs from transcript:")
println(transcript)
assert(false)