From 425d70430747f17717fcce9837bdcf6ce891e772 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 12 Sep 2023 22:16:48 +0000 Subject: [PATCH 1/2] Failed Scalafix rule(s) dependency:Collection213Upgrade@org.scala-lang.modules:scala-collection-migrations:2.8.1 See https://github.com/scala/scala-collection-compat#collection213upgrade for details --- .../scala/samples/collections/TraversableSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/src/test/scala/org/nomadblacky/scala/samples/collections/TraversableSpec.scala b/legacy/src/test/scala/org/nomadblacky/scala/samples/collections/TraversableSpec.scala index 680b9d0a..1d9d66f0 100644 --- a/legacy/src/test/scala/org/nomadblacky/scala/samples/collections/TraversableSpec.scala +++ b/legacy/src/test/scala/org/nomadblacky/scala/samples/collections/TraversableSpec.scala @@ -55,7 +55,7 @@ class TraversableSpec extends FunSpec { assert(result == 6) // 省略 - assert((0 /: List(1, 2, 3)) { (sum, i) => + assert((List(1, 2, 3).foldLeft(0)) { (sum, i) => sum + i } == 6) } @@ -70,7 +70,7 @@ class TraversableSpec extends FunSpec { assert(result == 6) // 省略 - assert((List(1, 2, 3) :\ 0) { (sum, i) => + assert((List(1, 2, 3).foldRight(0)) { (sum, i) => sum + i } == 6) } From 93346d0267ebac87ce486ce5457f7b6434622051 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 12 Sep 2023 22:17:00 +0000 Subject: [PATCH 2/2] Update scala-reflect to 2.13.12 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index a7e42337..5b545125 100644 --- a/build.sbt +++ b/build.sbt @@ -5,7 +5,7 @@ inThisBuild( ) ) -val Scala2_12 = "2.12.18" +val Scala2_12 = "2.13.12" val Scala2_13 = "2.13.6" val Scala3 = "3.0.1"