Skip to content

Commit 10bb601

Browse files
committed
.
1 parent 5ac49a6 commit 10bb601

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

compiler/test-resources/repl/i3388

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
scala> val foo = "1"; foo.toInt
2-
val foo: String = 1
2+
val foo: String = "1"
33
val res0: Int = 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LoadTests extends ReplTest {
2020
|def helloWorld: String
2121
|""".stripMargin,
2222
runCode = "helloWorld",
23-
output = """|val res0: String = Hello, World!
23+
output = """|val res0: String = "Hello, World!"
2424
|""".stripMargin
2525
)
2626

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ReplCompilerTests extends ReplTest:
7777
assertEquals(1, summon[State].imports.size)
7878
run("""mutable.Map("one" -> 1)""")
7979
assertEquals(
80-
"val res0: scala.collection.mutable.Map[String, Int] = HashMap(one -> 1)",
80+
"val res0: scala.collection.mutable.Map[String, Int] = Map("one"" -> 1)",
8181
storedOutput().trim
8282
)
8383
}
@@ -262,7 +262,7 @@ class ReplCompilerTests extends ReplTest:
262262
263263
@Test def testSingletonPrint = initially {
264264
run("""val a = "hello"; val x: a.type = a""")
265-
assertMultiLineEquals("val a: String = hello\nval x: a.type = hello", storedOutput().trim)
265+
assertMultiLineEquals("val a: String = hello\nval x: a.type = \"hello\"", storedOutput().trim)
266266
}
267267

268268
@Test def i6574 = initially {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class ShadowingTests extends ReplTest(options = ShadowingTests.options):
131131
testScript(name = "<shadow-subdir-x>",
132132
"""|scala> val (x, y) = (42, "foo")
133133
|val x: Int = 42
134-
|val y: String = foo
134+
|val y: String = "foo"
135135
|
136136
|scala> if (true) x else y
137137
|val res0: Int | String = 42

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class WorksheetTest {
9090
case _ => "odd"
9191
}${m2}"""
9292
.run(m1,
93-
((m1 to m2), "val res0: String = odd"))
93+
((m1 to m2), "val res0: String = \"odd\""))
9494
}
9595

9696
@Test def evaluationException: Unit = {

0 commit comments

Comments
 (0)