Skip to content

Commit f911189

Browse files
committed
add test
1 parent 284c207 commit f911189

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/core/src/test/scala/org/scalasteward/core/update/FilterAlgTest.scala

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,17 @@ class FilterAlgTest extends FunSuite {
247247
assert(isDependencyConfigurationIgnored(dependency.copy(configurations = Some("scalafmt"))))
248248
}
249249

250-
test("scalaLTSFilter: LTS") {
251-
val update = ("org.scala-lang".g % "scala3-compiler".a % "3.3.3" %> Nel.of("3.4.0")).single
250+
test("scalaLTSFilter: LTS, no update") {
251+
val update = ("org.scala-lang".g % "scala3-compiler".a % "3.3.2" %> Nel.of("3.4.0")).single
252252
assertEquals(scalaLTSFilter(update), Left(IgnoreScalaNext(update)))
253253
}
254254

255+
test("scalaLTSFilter: LTS, filter versions") {
256+
val update =
257+
("org.scala-lang".g % "scala3-compiler".a % "3.3.2" %> Nel.of("3.3.3", "3.4.0")).single
258+
assertEquals(scalaLTSFilter(update), Right(update.copy(newerVersions = Nel.of("3.3.3".v))))
259+
}
260+
255261
test("scalaLTSFilter: Next") {
256262
val update = ("org.scala-lang".g % "scala3-compiler".a % "3.4.0" %> Nel.of("3.4.1")).single
257263
assertEquals(scalaLTSFilter(update), Right(update))

0 commit comments

Comments
 (0)