summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-31 06:09:14 +0000
committerPaul Phillips <paulp@improving.org>2011-03-31 06:09:14 +0000
commitf88c979f856ebcde94b3fc3c60d83039230c83d0 (patch)
tree395e0895d161fef0ad47a2689abed4be18f8aecb /test/files
parentc81e94b5dd39cf86abd0145fc93e0999f57a548c (diff)
downloadscala-f88c979f856ebcde94b3fc3c60d83039230c83d0.tar.gz
scala-f88c979f856ebcde94b3fc3c60d83039230c83d0.tar.bz2
scala-f88c979f856ebcde94b3fc3c60d83039230c83d0.zip
Fix for interpreter issue with missing newlines...
Fix for interpreter issue with missing newlines wreaking havoc. No review.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/repl-assign.check14
-rw-r--r--test/files/run/repl-assign.scala10
2 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/repl-assign.check b/test/files/run/repl-assign.check
new file mode 100644
index 0000000000..0181985f08
--- /dev/null
+++ b/test/files/run/repl-assign.check
@@ -0,0 +1,14 @@
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala>
+scala> x: Int = 10
+
+scala> y: Int = 11
+
+scala> x: Int = 12
+
+scala> y: Int = 13
+
+scala>
+scala>
diff --git a/test/files/run/repl-assign.scala b/test/files/run/repl-assign.scala
new file mode 100644
index 0000000000..ee3c1649d8
--- /dev/null
+++ b/test/files/run/repl-assign.scala
@@ -0,0 +1,10 @@
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ def code = """
+var x = 10
+var y = 11
+x = 12
+y = 13
+ """
+} \ No newline at end of file