Skip to content

Commit 66a726b

Browse files
Fix tests
1 parent 2659361 commit 66a726b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

compiler/test-resources/repl/i1369

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
scala> print("foo")
22
foo
33
scala> "Hello"
4-
val res0: String = Hello
4+
val res0: String = "Hello"

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class ReplCompilerTests extends ReplTest {
196196

197197
@Test def testSingletonPrint = fromInitialState { implicit state =>
198198
run("""val a = "hello"; val x: a.type = a""")
199-
assertMultiLineEquals("val a: String = hello\nval x: a.type = hello", storedOutput().trim)
199+
assertMultiLineEquals("val a: String = \"hello\"\nval x: a.type = \"hello\"", storedOutput().trim)
200200
}
201201

202202
@Test def i6574 = fromInitialState { implicit state =>

language-server/test/dotty/tools/languageserver/WorksheetTest.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ class WorksheetTest {
8484
((m1 to m2), s"1${nl}2${nl}3"))
8585
}
8686

87-
@Test def patternMatching0: Unit = {
87+
@Test def : Unit = {
8888
ws"""${m1}1 + 2 match {
8989
case x if x % 2 == 0 => "even"
9090
case _ => "odd"
9191
}${m2}""".withSource
9292
.run(m1,
93-
((m1 to m2), "val res0: String = odd"))
93+
((m1 to m2), "val res0: String = \"odd\""))
9494
}
9595

9696
@Test def patternMatching1: Unit = {

staging/test-resources/repl-staging/i6007

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ def compiler: quoted.staging.Compiler
55
scala> def v(using Quotes) = '{ (if true then Some(1) else None).map(v => v+1) }
66
def v(using x$1: quoted.Quotes): quoted.Expr[Option[Int]]
77
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)))"
99
scala> scala.quoted.staging.run(v)
1010
val res1: Option[Int] = Some(2)

0 commit comments

Comments
 (0)