Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fthomas committed Dec 27, 2024
1 parent 395c1ee commit 16186f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ val Versions = new {
val circe = "0.14.10"
val config = "1.4.3"
val munit = "1.0.3"
val disciplineMunit = "1.0.9"
val munitCatsEffect = "1.0.7"
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

0 comments on commit 16186f9

Please sign in to comment.