summaryrefslogtreecommitdiff
path: root/test/files/run/repl-save.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/repl-save.scala')
-rw-r--r--test/files/run/repl-save.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/repl-save.scala b/test/files/run/repl-save.scala
new file mode 100644
index 0000000000..465aff225b
--- /dev/null
+++ b/test/files/run/repl-save.scala
@@ -0,0 +1,16 @@
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ def code = s"""
+ |val i = 7
+ |val j = 8
+ |i * j
+ |:save $saveto
+ """.stripMargin.trim
+ def saveto = testOutput / "session.repl"
+
+ override def show() = {
+ super.show()
+ Console print saveto.toFile.slurp
+ }
+}