From b9785280a7138a2bb52060faf94807aa0d07dec1 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 24 Aug 2011 17:11:55 +0000 Subject: Renamed tests named bugXXX to tXXX, no review. --- test/files/run/t4671.check | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 test/files/run/t4671.check (limited to 'test/files/run/t4671.check') diff --git a/test/files/run/t4671.check b/test/files/run/t4671.check new file mode 100644 index 0000000000..4699818cd4 --- /dev/null +++ b/test/files/run/t4671.check @@ -0,0 +1,46 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> object o { val file = sys.props("partest.cwd") + "/t4671.scala" } +defined module o + +scala> val s = scala.io.Source.fromFile(o.file) +s: scala.io.BufferedSource = non-empty iterator + +scala> println(s.getLines.mkString("\n")) +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + // My god...it's full of quines + def code = """ +object o { val file = sys.props("partest.cwd") + "/t4671.scala" } +val s = scala.io.Source.fromFile(o.file) +println(s.getLines.mkString("\n")) + +val s = scala.io.Source.fromFile(o.file) +println(s.mkString("")) +""".trim +} + +scala> + +scala> val s = scala.io.Source.fromFile(o.file) +s: scala.io.BufferedSource = non-empty iterator + +scala> println(s.mkString("")) +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + // My god...it's full of quines + def code = """ +object o { val file = sys.props("partest.cwd") + "/t4671.scala" } +val s = scala.io.Source.fromFile(o.file) +println(s.getLines.mkString("\n")) + +val s = scala.io.Source.fromFile(o.file) +println(s.mkString("")) +""".trim +} + + +scala> -- cgit v1.2.3