diff --git a/build.sbt b/build.sbt index 01e6726ec..dfe15f875 100644 --- a/build.sbt +++ b/build.sbt @@ -26,7 +26,7 @@ lazy val jscienceVersion = "4.3.1" lazy val apacheCommonsMath3Version = "3.6.1" val Scala213 = "2.13.10" -val Scala3 = "3.2.2" +val Scala3 = "3.3.0" Global / onChangedBuildSource := ReloadOnSourceChanges diff --git a/tests/shared/src/test/scala/spire/syntax/CforSuite.scala b/tests/shared/src/test/scala/spire/syntax/CforSuite.scala index 1fea3eef8..a4d4f514b 100644 --- a/tests/shared/src/test/scala/spire/syntax/CforSuite.scala +++ b/tests/shared/src/test/scala/spire/syntax/CforSuite.scala @@ -104,13 +104,7 @@ class CforSuite extends munit.FunSuite { cfor(0)(_ < 3, _ + 1) { x => b1 += (() => x) } - val b2 = collection.mutable.ArrayBuffer[() => Int]() - var i = 0 - while (i < 3) { - b2 += (() => i) - i += 1 - } - assertEquals(b1.map(_.apply()).toList, b2.map(_.apply()).toList) + assertEquals(b1.map(_.apply()).toList, List(0, 1, 2)) } test("capture value in inner class") {