diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-06 18:48:15 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-06 18:48:15 +0000 |
commit | f36e7acd02134fed6f27a61e82bf454a68684499 (patch) | |
tree | 17eadf7ddc0c5e19f352d570805b29319a60fe9a /test/files/run/repl-paste-2.scala | |
parent | 1cf60d304d1a88c4e79ca4636f49d4676f2bfe04 (diff) | |
download | scala-f36e7acd02134fed6f27a61e82bf454a68684499.tar.gz scala-f36e7acd02134fed6f27a61e82bf454a68684499.tar.bz2 scala-f36e7acd02134fed6f27a61e82bf454a68684499.zip |
The beautification of repl pasting had the prob...
The beautification of repl pasting had the problem that the new
beautiful output was not itself pastable. Now I have achieved "paste
idempotence". No review.
Diffstat (limited to 'test/files/run/repl-paste-2.scala')
-rw-r--r-- | test/files/run/repl-paste-2.scala | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/files/run/repl-paste-2.scala b/test/files/run/repl-paste-2.scala index 802c627701..f62927791d 100644 --- a/test/files/run/repl-paste-2.scala +++ b/test/files/run/repl-paste-2.scala @@ -2,14 +2,17 @@ import scala.tools.partest.ReplTest object Test extends ReplTest { def code = """ +scala> 0123 +res4: Int = 0123 + scala> 123 -res0: Int = 123 +res5: Int = 123 scala> 567 -res1: Int = 567 +res6: Int = 567 -scala> res0 + res1 -res2: Int = 690 +scala> res5 + res6 +res7: Int = 690 scala> val x = dingus <console>:7: error: not found: value dingus @@ -20,9 +23,9 @@ scala> val x = "dingus" x: java.lang.String = dingus scala> x.length -res3: Int = 6 +res9: Int = 6 -scala> x.length + res3 -res4: Int = 12 +scala> x.length + res5 +res10: Int = 12 """ }
\ No newline at end of file |