Skip to content

Commit 36c8e13

Browse files
committed
Polish rewrite test
Remove println; add docs
1 parent f570fcc commit 36c8e13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test/CompilerTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ abstract class CompilerTest {
9393
if (args.contains("-rewrite")) {
9494
val file = new PlainFile(filePath)
9595
val data = file.toByteArray
96-
val cs = data.map(_.toChar)
97-
println(s"data = ${cs.mkString}")
96+
// compile with rewrite
9897
compileArgs((filePath :: args).toArray, expErrors)
98+
// compile again, check that file now compiles without -language:Scala2
9999
val plainArgs = args.filter(arg => arg != "-rewrite" && arg != "-language:Scala2")
100-
println(s"plainArgs = $plainArgs")
101100
compileFile(prefix, fileName, plainArgs, extension, runTest)
101+
// restore original test file
102102
val out = file.output
103103
out.write(data)
104104
out.close()

0 commit comments

Comments
 (0)