Skip to content

Commit 2a4a1c1

Browse files
committed
.
1 parent f4b89d7 commit 2a4a1c1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

compiler/test-resources/repl/jar-multiple

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ Added 'compiler/test-resources/jars/mylibrary.jar' to classpath.
77
scala> import mylibrary.Utils
88

99
scala> Utils.greet("Alice")
10-
val res0: String = Hello, Alice!
10+
val res0: String = "Hello, Alice!"
1111

1212
scala>:jar compiler/test-resources/jars/mylibrary2.jar
1313
Added 'compiler/test-resources/jars/mylibrary2.jar' to classpath.
1414

1515
scala> import mylibrary2.Utils2
1616

1717
scala> Utils2.greet("Alice")
18-
val res1: String = Greetings, Alice!
18+
val res1: String = "Greetings, Alice!"
1919

2020
scala> Utils.greet("Alice")
21-
val res2: String = Hello, Alice!
21+
val res2: String = "Hello, Alice!"
2222

2323
scala> import mylibrary.Utils.greet
2424

2525
scala> greet("Tom")
26-
val res3: String = Hello, Tom!
26+
val res3: String = "Hello, Tom!"
2727

2828
scala> Utils.greet("Alice")
29-
val res4: String = Hello, Alice!
29+
val res4: String = "Hello, Alice!"
3030

3131
scala> z
3232
val res5: Int = 1

compiler/test/dotty/tools/dotc/printing/SyntaxHighlightingTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class SyntaxHighlightingTests extends DottyTest {
9595
test("val foo = 123", "<K|val> <V|foo> = <L|123>")
9696
test(
9797
"val foo: List[List[Int]] = List(List(1))",
98-
"<K|val> <V|foo>: <T|List>[<T|List>[<T|Int>]] = List(List(<L|1>))"
98+
"<K|val> <V|foo>: <T|List>[<T|List>[<T|Int>]] = <T|List>(<T|List>(<L|1>))"
9999
)
100100

101101
test("var", "<K|var>")

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] = HashMap(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 {

0 commit comments

Comments
 (0)