File tree 4 files changed +5
-5
lines changed
language-server/test/dotty/tools/languageserver
staging/test-resources/repl-staging
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
scala> print("foo")
2
2
foo
3
3
scala> "Hello"
4
- val res0: String = Hello
4
+ val res0: String = " Hello"
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ class ReplCompilerTests extends ReplTest {
196
196
197
197
@ Test def testSingletonPrint = fromInitialState { implicit state =>
198
198
run(""" val a = "hello"; val x: a.type = a""" )
199
- assertMultiLineEquals(" val a: String = hello\n val x: a.type = hello" , storedOutput().trim)
199
+ assertMultiLineEquals(" val a: String = \" hello\"\ n val x: a.type = \" hello\" " , storedOutput().trim)
200
200
}
201
201
202
202
@ Test def i6574 = fromInitialState { implicit state =>
Original file line number Diff line number Diff line change @@ -84,13 +84,13 @@ class WorksheetTest {
84
84
((m1 to m2), s " 1 ${nl}2 ${nl}3 " ))
85
85
}
86
86
87
- @ Test def patternMatching0 : Unit = {
87
+ @ Test def : Unit = {
88
88
ws """ ${m1}1 + 2 match {
89
89
case x if x % 2 == 0 => "even"
90
90
case _ => "odd"
91
91
} ${m2}""" .withSource
92
92
.run(m1,
93
- ((m1 to m2), " val res0: String = odd" ))
93
+ ((m1 to m2), " val res0: String = \" odd\" " ))
94
94
}
95
95
96
96
@ Test def patternMatching1 : Unit = {
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ def compiler: quoted.staging.Compiler
5
5
scala> def v(using Quotes) = '{ (if true then Some(1) else None).map(v => v+1) }
6
6
def v(using x$1: quoted.Quotes): quoted.Expr[Option[Int]]
7
7
scala> scala.quoted.staging.withQuotes(v.show)
8
- val res0: String = (if (true) scala.Some.apply[scala.Int](1) else scala.None).map[scala.Int](((v: scala.Int) => v.+(1)))
8
+ val res0: String = " (if (true) scala.Some.apply[scala.Int](1) else scala.None).map[scala.Int](((v: scala.Int) => v.+(1)))"
9
9
scala> scala.quoted.staging.run(v)
10
10
val res1: Option[Int] = Some(2)
You can’t perform that action at this time.
0 commit comments