Skip to content

Commit

Permalink
bugfix: Fix some of the tests in the nightly CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Nov 28, 2023
1 parent 0d993f2 commit 8eae210
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/cross/src/test/scala/tests/pc/CompletionDocSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,9 @@ class CompletionDocSuite extends BaseCompletionSuite {
includeDocs = true,
compat = Map(
"2.13" -> vectorDocs213,
"3" -> vectorDocs213
"3" -> vectorDocs213,
// TODO https://github.com/scalameta/metals/issues/5885
">=3.4.0-RC1-bin-20231127-41e7d95-NIGHTLY" -> "Vector: scala.collection.immutable"
)
)

Expand Down
27 changes: 24 additions & 3 deletions tests/cross/src/test/scala/tests/pc/CompletionSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ class CompletionSuite extends BaseCompletionSuite {
|""".stripMargin,
"3" ->
"""|List scala.collection.immutable
|List - java.awt
|List - java.util
|List - scala.collection.immutable
|List[A](elems: A*): CC[A]
|""".stripMargin,
// TODO https://github.com/scalameta/metals/issues/5885
">=3.4.0-RC1-bin-20231127-41e7d95-NIGHTLY" ->
"""|List: scala.collection.immutable
|List - java.awt
|List - java.util
|List - scala.collection.immutable
Expand Down Expand Up @@ -1065,7 +1073,14 @@ class CompletionSuite extends BaseCompletionSuite {
"""|None scala
|NoManifest scala.reflect
|""".stripMargin,
topLines = Some(2)
topLines = Some(2),
compat = Map(
// TODO https://github.com/scalameta/metals/issues/5885
">=3.4.0-RC1-bin-20231127-41e7d95-NIGHTLY" ->
"""|None scala
|NoManifest: scala.reflect
|""".stripMargin
)
)

check(
Expand Down Expand Up @@ -1093,8 +1108,14 @@ class CompletionSuite extends BaseCompletionSuite {
|""".stripMargin,
"3" ->
"""|Some(value) scala
|Seq scala.collection.immutable
|Set scala.collection.immutable
|Seq: scala.collection.immutable
|Set: scala.collection.immutable
|""".stripMargin,
// TODO https://github.com/scalameta/metals/issues/5885
">=3.4.0-RC1-bin-20231127-41e7d95-NIGHTLY" ->
"""|Some(value) scala
|Seq: scala.collection.immutable
|Set: scala.collection.immutable
|""".stripMargin
)
)
Expand Down

0 comments on commit 8eae210

Please sign in to comment.