summaryrefslogtreecommitdiff
path: root/test/files/run/bug4285.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-02-28 21:23:59 +0000
committerPaul Phillips <paulp@improving.org>2011-02-28 21:23:59 +0000
commitfdaa0a7a0178eab124d65f96e872c07c4400c94a (patch)
tree2d2e8c1214e7fb253954ac1e73e616d06d9de7e6 /test/files/run/bug4285.scala
parent34719ee9cb51650550cfcf849178cf5da5a93dd5 (diff)
downloadscala-fdaa0a7a0178eab124d65f96e872c07c4400c94a.tar.gz
scala-fdaa0a7a0178eab124d65f96e872c07c4400c94a.tar.bz2
scala-fdaa0a7a0178eab124d65f96e872c07c4400c94a.zip
Break 9 tests, fix 9 tests, realize you broke t...
Break 9 tests, fix 9 tests, realize you broke the test you checked in between +9 and -9. Fix that and generalize the repl tests a little. I think we're all the way there. No review.
Diffstat (limited to 'test/files/run/bug4285.scala')
-rw-r--r--test/files/run/bug4285.scala13
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
}
-
-