Skip to content

Commit

Permalink
Merge pull request #445 from scala-steward/update/munit-1.0.3
Browse files Browse the repository at this point in the history
Update munit to 1.0.3
  • Loading branch information
fthomas authored Dec 27, 2024
2 parents beb6c65 + e98588a commit ffd89d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ ThisBuild / tlMimaPreviousVersions ++= Set(
val Versions = new {
val circe = "0.14.10"
val config = "1.4.3"
val munit = "0.7.29"
val disciplineMunit = "1.0.9"
val munitCatsEffect = "1.0.7"
val munit = "1.0.3"
val disciplineMunit = "2.0.0"
val munitCatsEffect = "2.0.0"
}

lazy val root = tlCrossRootProject.aggregate(config)
Expand All @@ -47,7 +47,7 @@ lazy val config = project
"io.circe" %% "circe-testing" % Versions.circe % Test,
"org.scalameta" %% "munit" % Versions.munit % Test,
"org.typelevel" %% "discipline-munit" % Versions.disciplineMunit % Test,
"org.typelevel" %% "munit-cats-effect-3" % Versions.munitCatsEffect % Test
"org.typelevel" %% "munit-cats-effect" % Versions.munitCatsEffect % Test
),
tlVersionIntroduced := Map(
"2.12" -> "0.3.0",
Expand Down
6 changes: 4 additions & 2 deletions config/src/test/scala-2/io.circe.config/CirceConfigSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ class CirceConfigSpec extends CatsEffectSuite {

test("printer should print it into a config string") {
val Right(json) = parser.parse(AppConfig)
val printed = io.circe.config.printer.print(json)
val expected = readFile("CirceConfigSpec.printed.conf")
assertEquals(printer.print(json), expected)
assertEquals(printed, expected)
}

test("syntax should provide Config decoder") {
Expand All @@ -109,7 +110,8 @@ class CirceConfigSpec extends CatsEffectSuite {
test("round-trip should parse and print") {
for (file <- testResourcesDir.listFiles) {
val Right(json) = parser.parseFile(file)
assertEquals(parser.parse(printer.print(json)), Right(json), s"round-trip failed for ${file.getName}")
val printed = io.circe.config.printer.print(json)
assertEquals(parser.parse(printed), Right(json), s"round-trip failed for ${file.getName}")
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions config/src/test/scala-3/io.circe.config/CirceConfigSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ package io.circe.config
import cats.effect.IO
import com.typesafe.config.{parser as _, *}
import io.circe.config.syntax.*
import io.circe.syntax.*
import io.circe.{parser as _, *}
import munit.CatsEffectSuite

Expand Down Expand Up @@ -86,8 +85,9 @@ class CirceConfigSpec extends CatsEffectSuite {

test("printer should print it into a config string") {
val Right(json) = parser.parse(AppConfig)
val printed = io.circe.config.printer.print(json)
val expected = readFile("CirceConfigSpec.printed.conf")
assertEquals(printer.print(json), expected)
assertEquals(printed, expected)
}

test("syntax should provide Config decoder") {
Expand All @@ -109,7 +109,8 @@ class CirceConfigSpec extends CatsEffectSuite {
test("round-trip should parse and print") {
for (file <- testResourcesDir.listFiles) {
val Right(json) = parser.parseFile(file)
assertEquals(parser.parse(printer.print(json)), Right(json), s"round-trip failed for ${file.getName}")
val printed = io.circe.config.printer.print(json)
assertEquals(parser.parse(printed), Right(json), s"round-trip failed for ${file.getName}")
}
}
}
Expand Down

0 comments on commit ffd89d1

Please sign in to comment.