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.
2 parents 971e89f + 9729d0a commit ce1086aCopy full SHA for ce1086a
compiler/test/dotty/tools/repl/ScriptedTests.scala
@@ -26,7 +26,7 @@ class ScriptedTests extends ReplTest with MessageRendering {
26
val lines = Source.fromFile(f, "UTF-8").getLines().buffered
27
28
assert(lines.head.startsWith(prompt),
29
- s"""Each file has to start with the prompt: "$prompt"""")
+ s"""Each file has to start with the prompt: "$prompt"""")
30
31
def extractInputs(prompt: String): List[String] = {
32
val input = lines.next()
@@ -69,6 +69,10 @@ class ScriptedTests extends ReplTest with MessageRendering {
69
inputRes.foldLeft(initialState) { (state, input) =>
70
val (out, nstate) = evaluate(state, input, prompt)
71
buf.append(out)
72
+
73
+ assert(out.endsWith("\n"),
74
+ s"Expected output of $input to end with newline")
75
76
nstate
77
}
78
buf.flatMap(filterEmpties).mkString(EOL)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments