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 bce6abd commit 952fb20Copy full SHA for 952fb20
test/test/TestREPL.scala
@@ -38,7 +38,8 @@ class TestREPL(script: String) extends REPL {
38
out.close()
39
val printed = out.toString
40
val transcript = printed.drop(printed.indexOf(config.prompt))
41
- if (transcript.toString != script) {
+ val transcriptNoColors = transcript.toString.replaceAll("\u001B\\[[;\\d]*m", "")
42
+ if (transcriptNoColors != script) {
43
println("input differs from transcript:")
44
println(transcript)
45
assert(false)
0 commit comments