File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,26 +7,26 @@ Added 'compiler/test-resources/jars/mylibrary.jar' to classpath.
7
7
scala> import mylibrary.Utils
8
8
9
9
scala> Utils.greet("Alice")
10
- val res0: String = Hello, Alice!
10
+ val res0: String = " Hello, Alice!"
11
11
12
12
scala>:jar compiler/test-resources/jars/mylibrary2.jar
13
13
Added 'compiler/test-resources/jars/mylibrary2.jar' to classpath.
14
14
15
15
scala> import mylibrary2.Utils2
16
16
17
17
scala> Utils2.greet("Alice")
18
- val res1: String = Greetings, Alice!
18
+ val res1: String = " Greetings, Alice!"
19
19
20
20
scala> Utils.greet("Alice")
21
- val res2: String = Hello, Alice!
21
+ val res2: String = " Hello, Alice!"
22
22
23
23
scala> import mylibrary.Utils.greet
24
24
25
25
scala> greet("Tom")
26
- val res3: String = Hello, Tom!
26
+ val res3: String = " Hello, Tom!"
27
27
28
28
scala> Utils.greet("Alice")
29
- val res4: String = Hello, Alice!
29
+ val res4: String = " Hello, Alice!"
30
30
31
31
scala> z
32
32
val res5: Int = 1
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ class SyntaxHighlightingTests extends DottyTest {
95
95
test(" val foo = 123" , " <K|val> <V|foo> = <L|123>" )
96
96
test(
97
97
" 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>))"
99
99
)
100
100
101
101
test(" var" , " <K|var>" )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class ReplCompilerTests extends ReplTest:
77
77
assertEquals(1 , summon[State ].imports.size)
78
78
run(""" mutable.Map("one" -> 1)""" )
79
79
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)" ,
81
81
storedOutput().trim
82
82
)
83
83
}
@@ -262,7 +262,7 @@ class ReplCompilerTests extends ReplTest:
262
262
263
263
@ Test def testSingletonPrint = initially {
264
264
run(""" val a = "hello"; val x: a.type = a""" )
265
- assertMultiLineEquals(" val a: String =\" hello\"\n val x: a.type = \" hello\" " , storedOutput().trim)
265
+ assertMultiLineEquals(" val a: String = \" hello\"\n val x: a.type = \" hello\" " , storedOutput().trim)
266
266
}
267
267
268
268
@ Test def i6574 = initially {
You can’t perform that action at this time.
0 commit comments