Skip to content

Commit eef5d76

Browse files
committed
Move tests to CompletionTests file
1 parent 73dc017 commit eef5d76

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,4 @@ class TabcompleteTests extends ReplTest {
137137
assertEquals(List("select", "show", "simplified", "substituteTypes"),
138138
tabComplete("import quoted.* ; def fooImpl(using Quotes): Expr[Int] = { import quotes.reflect.* ; TypeRepr.of[Int].s"))
139139
}
140-
141-
@Test def i13624 = fromInitialState { implicit s =>
142-
assertEquals(List("implicitNotFound"), tabComplete("@annotation.implicitNot"))
143-
assertEquals(List("main"), tabComplete("@annotation.implicitNotFound @mai"))
144-
}
145140
}

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,4 +946,21 @@ class CompletionTest {
946946
("MyAnnotation", Module, "Foo.MyAnnotation")
947947
)
948948
)
949+
950+
@Test def i13624_annotation : Unit =
951+
code"""@annotation.implicitNot${m1}
952+
|@annotation.implicitNotFound @mai${m2}"""
953+
.withSource
954+
.completion(m1,
955+
Set(
956+
("implicitNotFound", Class, "scala.annotation.implicitNotFound"),
957+
("implicitNotFound", Module, "scala.annotation.implicitNotFound")
958+
)
959+
)
960+
.completion(m2,
961+
Set(
962+
("main", Class, "scala.main"),
963+
("main", Module, "main")
964+
)
965+
)
949966
}

0 commit comments

Comments
 (0)