diff options
Diffstat (limited to 'test/files/run/bug4285.scala')
-rw-r--r-- | test/files/run/bug4285.scala | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/files/run/bug4285.scala b/test/files/run/bug4285.scala index 9e89b13a3a..1d9afcaf3d 100644 --- a/test/files/run/bug4285.scala +++ b/test/files/run/bug4285.scala @@ -1,7 +1,8 @@ -object Test { - def main(args: Array[String]): Unit = { - println(scala.tools.nsc.interpreter.ILoop.run("val x = Array(1,2,3,4,5,6,7) ; val y = x transform (_ * 2) ; println(y.sum)")) - } +import scala.tools.partest.ReplTest +object Test extends ReplTest { + def code = """ + |val x = Array(1,2,3,4,5,6,7) + |val y = x transform (_ * 2) + |println(y.sum) + """.stripMargin } - - |