summaryrefslogtreecommitdiff
path: root/test/files/run/repl-save.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-07-01 03:55:27 -0700
committerSom Snytt <som.snytt@gmail.com>2013-07-01 03:55:27 -0700
commit72298b838354e621b2fed61734d394d5befa0708 (patch)
treeda65219e5fa8bf4385a3e5d659da45fd57a96207 /test/files/run/repl-save.check
parentbfda11426f9c908831489bb9173bc88dec5c4ce8 (diff)
downloadscala-72298b838354e621b2fed61734d394d5befa0708.tar.gz
scala-72298b838354e621b2fed61734d394d5befa0708.tar.bz2
scala-72298b838354e621b2fed61734d394d5befa0708.zip
SI-6419 Repl save session command
A simple save command to write out the current replay stack. ``` scala> val i = 7 i: Int = 7 scala> val j= 8 j: Int = 8 scala> i * j res0: Int = 56 scala> :save multy.script scala> :q apm@mara:~/tmp$ cat multy.script val i = 7 val j= 8 i * j apm@mara:~/tmp$ skala Welcome to Scala version 2.11.0-20130626-204845-a83ca5bdf7 (OpenJDK 64-Bit Server VM, Java 1.7.0_21). Type in expressions to have them evaluated. Type :help for more information. scala> :load multy.script Loading multy.script... i: Int = 7 j: Int = 8 res0: Int = 56 scala> :load multy.script Loading multy.script... i: Int = 7 j: Int = 8 res1: Int = 56 ```
Diffstat (limited to 'test/files/run/repl-save.check')
-rw-r--r--test/files/run/repl-save.check18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/repl-save.check b/test/files/run/repl-save.check
new file mode 100644
index 0000000000..7ed769278f
--- /dev/null
+++ b/test/files/run/repl-save.check
@@ -0,0 +1,18 @@
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala> val i = 7
+i: Int = 7
+
+scala> val j = 8
+j: Int = 8
+
+scala> i * j
+res0: Int = 56
+
+scala> :save repl-save-run.obj/session.repl
+
+scala>
+val i = 7
+val j = 8
+i * j