Skip to content

Commit

Permalink
bugfix: Fix tests after circe released version for 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Jul 2, 2024
1 parent dc7caa8 commit 260a8dd
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class CompletionMillIvySuite extends BaseCompletionSuite {
"""|circe-core_native0.4_2.12
|circe-core_native0.4_2.13
|circe-core_native0.4_3
|circe-core_native0.5_2.12
|circe-core_native0.5_2.13
|circe-core_native0.5_3
|""".stripMargin,
filename = "build.sc"
)
Expand All @@ -44,6 +47,7 @@ class CompletionMillIvySuite extends BaseCompletionSuite {
|""".stripMargin,
"""|circe-core
|circe-core_native0.4
|circe-core_native0.5
|circe-core_sjs0.6
|circe-core_sjs1
|circe-core_sjs1.0-RC2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class CompletionSbtLibSuite extends BaseCompletionSuite {
"""|circe-core_native0.4_2.12
|circe-core_native0.4_2.13
|circe-core_native0.4_3
|circe-core_native0.5_2.12
|circe-core_native0.5_2.13
|circe-core_native0.5_3
|""".stripMargin,
filename = "A.sbt"
)
Expand All @@ -34,6 +37,7 @@ class CompletionSbtLibSuite extends BaseCompletionSuite {
|""".stripMargin,
"""|circe-core
|circe-core_native0.4
|circe-core_native0.5
|circe-core_sjs0.6
|circe-core_sjs1
|circe-core_sjs1.0-RC2
Expand Down Expand Up @@ -62,6 +66,8 @@ class CompletionSbtLibSuite extends BaseCompletionSuite {
|""".stripMargin,
"""|val dependency = "io.circe" %% "circe-core_native0.4"
|""".stripMargin,
filename = "A.sbt"
filename = "A.sbt",
itemIndex = 0,
assertSingleItem = false
)
}
16 changes: 13 additions & 3 deletions tests/cross/src/test/scala/tests/pc/CompletionScalaCliSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class CompletionScalaCliSuite extends BaseCompletionSuite {
|// //> using lib ???
|//> using lib io.circe::circe-core_native0.4
|package A
|""".stripMargin
|""".stripMargin,
assertSingleItem = false,
itemIndex = 0
)

check(
Expand All @@ -41,6 +43,9 @@ class CompletionScalaCliSuite extends BaseCompletionSuite {
"""|circe-core_native0.4_2.12
|circe-core_native0.4_2.13
|circe-core_native0.4_3
|circe-core_native0.5_2.12
|circe-core_native0.5_2.13
|circe-core_native0.5_3
|""".stripMargin
)

Expand Down Expand Up @@ -68,7 +73,8 @@ class CompletionScalaCliSuite extends BaseCompletionSuite {
"""|//> using lib "io.circe::circe-core:0.14.0", "io.circe::circe-core_na@@"
|package A
|""".stripMargin,
"circe-core_native0.4"
"""|circe-core_native0.4
|circe-core_native0.5""".stripMargin
)

check(
Expand All @@ -82,6 +88,9 @@ class CompletionScalaCliSuite extends BaseCompletionSuite {
"""|circe-core_native0.4_2.12
|circe-core_native0.4_2.13
|circe-core_native0.4_3
|circe-core_native0.5_2.12
|circe-core_native0.5_2.13
|circe-core_native0.5_3
|""".stripMargin,
filename = "script.sc.scala",
enablePackageWrap = false
Expand Down Expand Up @@ -147,7 +156,8 @@ class CompletionScalaCliSuite extends BaseCompletionSuite {
"""|//> using libs "io.circe::circe-core:0.14.0", "io.circe::circe-core_na@@"
|package A
|""".stripMargin,
"circe-core_native0.4"
"""|circe-core_native0.4
|circe-core_native0.5""".stripMargin
)

check(
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/src/main/scala/tests/BaseAmmoniteSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -646,12 +646,14 @@ abstract class BaseAmmoniteSuite(scalaVersion: String)
artefactExpectedCompletionList = getExpected(
"""|circe-refined
|circe-refined_native0.4
|circe-refined_native0.5
|circe-refined_sjs0.6
|circe-refined_sjs1
|""".stripMargin,
Map(
"3" -> """|circe-refined
|circe-refined_native0.4
|circe-refined_native0.5
|circe-refined_sjs1
|""".stripMargin
),
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/src/main/scala/tests/BaseWorksheetLspSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -851,12 +851,14 @@ abstract class BaseWorksheetLspSuite(
artefactExpectedCompletionList = getExpected(
"""|circe-refined
|circe-refined_native0.4
|circe-refined_native0.5
|circe-refined_sjs0.6
|circe-refined_sjs1
|""".stripMargin,
Map(
"3" -> """|circe-refined
|circe-refined_native0.4
|circe-refined_native0.5
|circe-refined_sjs1
|""".stripMargin
),
Expand Down

0 comments on commit 260a8dd

Please sign in to comment.