From d24e10ce0ecbd66668852937e27d8ae50997ba67 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 9 Mar 2016 08:24:28 +0100 Subject: Polish rewrite test Remove println; add docs --- test/test/CompilerTest.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test/CompilerTest.scala') 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() -- cgit v1.2.3