File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
modules/core/src/test/scala/org/scalasteward/core/update Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments