diff options
author | Martin Odersky <odersky@gmail.com> | 2016-03-09 08:24:28 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-03-12 16:08:38 +0100 |
commit | d24e10ce0ecbd66668852937e27d8ae50997ba67 (patch) | |
tree | 953ec93fba3e827587c74d8613190d385fb0865d /test/test/CompilerTest.scala | |
parent | 87b30c986be145806591c16445ec90a8a54dcee0 (diff) | |
download | dotty-d24e10ce0ecbd66668852937e27d8ae50997ba67.tar.gz dotty-d24e10ce0ecbd66668852937e27d8ae50997ba67.tar.bz2 dotty-d24e10ce0ecbd66668852937e27d8ae50997ba67.zip |
Polish rewrite test
Remove println; add docs
Diffstat (limited to 'test/test/CompilerTest.scala')
-rw-r--r-- | test/test/CompilerTest.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala index 739bba46d..ef2f719fc 100644 --- a/test/test/CompilerTest.scala +++ b/test/test/CompilerTest.scala @@ -93,12 +93,12 @@ abstract class CompilerTest { if (args.contains("-rewrite")) { val file = new PlainFile(filePath) val data = file.toByteArray - val cs = data.map(_.toChar) - println(s"data = ${cs.mkString}") + // compile with rewrite compileArgs((filePath :: args).toArray, expErrors) + // compile again, check that file now compiles without -language:Scala2 val plainArgs = args.filter(arg => arg != "-rewrite" && arg != "-language:Scala2") - println(s"plainArgs = $plainArgs") compileFile(prefix, fileName, plainArgs, extension, runTest) + // restore original test file val out = file.output out.write(data) out.close() |