Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class CompletionScalaCliSuite extends BaseCompletionSuite:
|// //> using lib ???
|//> using lib io.circe::circe-core_native0.4
|package A
|""".stripMargin
|""".stripMargin,
assertSingleItem = false
)

@Test def `version-sort` =
Expand All @@ -51,6 +52,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 @@ -78,7 +82,9 @@ 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
)

@Test def `script` =
Expand All @@ -92,6 +98,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 @@ -138,7 +147,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
)

private def scriptWrapper(code: String, filename: String): String =
Expand Down