aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2016-05-10 07:04:30 -0400
committerDmitry Petrashko <dark@d-d.me>2016-05-10 07:04:30 -0400
commit134ad7a6a172fec97dc438dd0aff3766a0f0944a (patch)
treea8a132424fbf4604b7eb80e64f44f1bc2cab92c3 /tests
parent181d7e41894f0e06af140dc355a7891ba737681c (diff)
parent1582959b3ed6c676e5e3265282046363d2c06cec (diff)
downloaddotty-134ad7a6a172fec97dc438dd0aff3766a0f0944a.tar.gz
dotty-134ad7a6a172fec97dc438dd0aff3766a0f0944a.tar.bz2
dotty-134ad7a6a172fec97dc438dd0aff3766a0f0944a.zip
Merge pull request #1233 from felixmulder/topic/repl-syntax-highlighting
Syntax highlighting for REPL using ammonite as base instead of JLine
Diffstat (limited to 'tests')
-rw-r--r--tests/repl/imports.check4
-rw-r--r--tests/repl/multilines.check33
2 files changed, 1 insertions, 36 deletions
diff --git a/tests/repl/imports.check b/tests/repl/imports.check
index 3fa103283..3a7e9341e 100644
--- a/tests/repl/imports.check
+++ b/tests/repl/imports.check
@@ -2,9 +2,7 @@ scala> import scala.collection.mutable
import scala.collection.mutable
scala> val buf = mutable.ListBuffer[Int]()
buf: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
-scala> object o {
- | val xs = List(1, 2, 3)
- | }
+scala> object o { val xs = List(1, 2, 3) }
defined module o
scala> import o._
import o._
diff --git a/tests/repl/multilines.check b/tests/repl/multilines.check
deleted file mode 100644
index 3bc32707e..000000000
--- a/tests/repl/multilines.check
+++ /dev/null
@@ -1,33 +0,0 @@
-scala> val x = """alpha
- |
- | omega"""
-x: String =
-alpha
-
-omega
-scala> val y = """abc
- | |def
- | |ghi
- | """.stripMargin
-y: String =
-abc
-def
-ghi
-
-scala> val z = {
- | def square(x: Int) = x * x
- | val xs = List(1, 2, 3)
- | square(xs)
- | }
-<console>:8: error: type mismatch:
- found : scala.collection.immutable.List[Int](xs)
- required: Int
- square(xs)
- ^
-scala> val z = {
- | def square(x: Int) = x * x
- | val xs = List(1, 2, 3)
- | xs.map(square)
- | }
-z: scala.collection.immutable.List[Int] = List(1, 4, 9)
-scala> :quit