Skip to content

Commit d470b77

Browse files
committed
Fix failing CompletionScalaCliSuite tests due to circe releasing Scala Native 0.5 artifacts
1 parent c48b224 commit d470b77

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionScalaCliSuite.scala

+13-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class CompletionScalaCliSuite extends BaseCompletionSuite:
2828
|// //> using lib ???
2929
|//> using lib io.circe::circe-core_native0.4
3030
|package A
31-
|""".stripMargin
31+
|""".stripMargin,
32+
assertSingleItem = false
3233
)
3334

3435
@Test def `version-sort` =
@@ -51,6 +52,9 @@ class CompletionScalaCliSuite extends BaseCompletionSuite:
5152
"""|circe-core_native0.4_2.12
5253
|circe-core_native0.4_2.13
5354
|circe-core_native0.4_3
55+
|circe-core_native0.5_2.12
56+
|circe-core_native0.5_2.13
57+
|circe-core_native0.5_3
5458
|""".stripMargin
5559
)
5660

@@ -78,7 +82,9 @@ class CompletionScalaCliSuite extends BaseCompletionSuite:
7882
"""|//> using lib "io.circe::circe-core:0.14.0", "io.circe::circe-core_na@@"
7983
|package A
8084
|""".stripMargin,
81-
"circe-core_native0.4"
85+
"""circe-core_native0.4
86+
|circe-core_native0.5
87+
|""".stripMargin
8288
)
8389

8490
@Test def `script` =
@@ -92,6 +98,9 @@ class CompletionScalaCliSuite extends BaseCompletionSuite:
9298
"""|circe-core_native0.4_2.12
9399
|circe-core_native0.4_2.13
94100
|circe-core_native0.4_3
101+
|circe-core_native0.5_2.12
102+
|circe-core_native0.5_2.13
103+
|circe-core_native0.5_3
95104
|""".stripMargin,
96105
filename = "script.sc.scala",
97106
enablePackageWrap = false
@@ -138,7 +147,8 @@ class CompletionScalaCliSuite extends BaseCompletionSuite:
138147
"""|//> using libs "io.circe::circe-core:0.14.0", "io.circe::circe-core_na@@"
139148
|package A
140149
|""".stripMargin,
141-
"circe-core_native0.4"
150+
"""circe-core_native0.4
151+
|circe-core_native0.5""".stripMargin
142152
)
143153

144154
private def scriptWrapper(code: String, filename: String): String =

0 commit comments

Comments
 (0)