Skip to content

Commit efe720a

Browse files
CompletionTest tests adapted to the new printer format
1 parent 01260f4 commit efe720a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CompletionTest {
7979
withSources(
8080
code"""object O { object MyObject }""",
8181
code"""import O.My${m1}"""
82-
).completion(m1, Set(("MyObject", Module, "O.MyObject")))
82+
).completion(m1, Set(("MyObject", Module, "O.MyObject$")))
8383
}
8484

8585
@Test def importCompleteWithClassAndCompanion: Unit = {
@@ -114,7 +114,7 @@ class CompletionTest {
114114
).completion(m1, Set(("myVal", Field, "Int"),
115115
("myDef", Method, "=> Int"),
116116
("myVar", Variable, "Int"),
117-
("myObject", Module, "MyObject.myObject"),
117+
("myObject", Module, "MyObject.myObject$"),
118118
("myClass", Class, "MyObject.myClass"),
119119
("myTrait", Class, "MyObject.myTrait")))
120120
}
@@ -138,7 +138,7 @@ class CompletionTest {
138138
code"""object O {
139139
val out = java.io.FileDesc${m1}
140140
}""".withSource
141-
.completion(m1, Set(("FileDescriptor", Module, "java.io.FileDescriptor")))
141+
.completion(m1, Set(("FileDescriptor", Module, "java.io.FileDescriptor$")))
142142
}
143143

144144
@Test def importRename: Unit = {
@@ -197,7 +197,7 @@ class CompletionTest {
197197
| object bat
198198
| val bizz: ba${m1}
199199
|}""".withSource
200-
.completion(m1, Set(("bar", Field, "Bar"), ("bat", Module, "Foo.bat")))
200+
.completion(m1, Set(("bar", Field, "Bar"), ("bat", Module, "Foo.bat$")))
201201
}
202202

203203
@Test def completionOnRenamedImport: Unit = {

0 commit comments

Comments
 (0)