Skip to content

Commit f64a0fe

Browse files
committed
Move tests to CompletionTests
1 parent beaaab5 commit f64a0fe

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

compiler/test/dotty/tools/dotc/interactive/CustomCompletionTests.scala

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -170,20 +170,3 @@ class CustomCompletionTests extends DottyTest:
170170
assert(offset == prefix.length)
171171
assert(labels.contains("scala.Function2"))
172172

173-
@Test def i12465_hkt(): Unit =
174-
val prefix = "???.asInstanceOf[scala.collection.Seq]"
175-
val input = prefix + "."
176-
177-
val (offset, completions0) = completions(input)
178-
val labels = completions0.map(_.label)
179-
180-
assert(labels.isEmpty)
181-
182-
@Test def i12465_hkt_alias(): Unit =
183-
val prefix = "???.asInstanceOf[Seq]"
184-
val input = prefix + "."
185-
186-
val (offset, completions0) = completions(input)
187-
val labels = completions0.map(_.label)
188-
189-
assert(labels.isEmpty)

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,4 +887,12 @@ class CompletionTest {
887887
)
888888
)
889889
}
890+
891+
@Test def i12465_hkt: Unit =
892+
code"""???.asInstanceOf[scala.collection.Seq].${m1}""".withSource
893+
.completion(m1, Set())
894+
895+
@Test def i12465_hkt_alias: Unit =
896+
code"""???.asInstanceOf[Seq].${m1}""".withSource
897+
.completion(m1, Set())
890898
}

0 commit comments

Comments
 (0)