Skip to content

Commit

Permalink
Reformat with scalafmt 3.8.5
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
scala-steward committed Jan 18, 2025
1 parent 189cd90 commit 0c10867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions optics/src/test/scala/io/circe/optics/JsonPathSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ class JsonPathSuite extends CirceSuite {
assert(root.at("foo").replace(Some(true.asJson))(john).asObject.flatMap(_.apply("foo")) === Some(Json.True))
}

it should "support codec" in {
it should "support codec" in
assert(root.cars.index(0).as[Car].getOption(john) === Some(Car("fancy", 120, automatic = false)))
}

"JsonTraversalPath" should "support traversal over each values of a json object" in {
assert(root.each.string.getAll(john) === List("John", "Doe"))
Expand All @@ -97,7 +96,7 @@ class JsonPathSuite extends CirceSuite {
)
}

it should "support an unsafe filtering by value" in {
it should "support an unsafe filtering by value" in
assert(
root.cars.each.filterUnsafe(root.maxSpeed.int.exist(_ > 100)).model.string.replace("new")(john) ===
Json.obj(
Expand All @@ -114,6 +113,5 @@ class JsonPathSuite extends CirceSuite {
).asJson
)
)
}

}
5 changes: 2 additions & 3 deletions optics/src/test/scala/io/circe/optics/LawsTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ object LawsTests extends Laws {
"modify id = id" -> Prop.forAll((s: S, i: I) => laws(i).modifyIdentity(s)),
"compose modify" -> Prop.forAll((s: S, g: A => A, h: A => A, i: I) => laws(i).composeModify(s, g, h)),
"consistent set with modify" -> Prop.forAll((s: S, a: A, i: I) => laws(i).consistentReplaceModify(s, a)),
"consistent modify with modifyId" -> Prop.forAll((s: S, g: A => A, i: I) =>
laws(i).consistentModifyModifyId(s, g)
),
"consistent modify with modifyId" -> Prop
.forAll((s: S, g: A => A, i: I) => laws(i).consistentModifyModifyId(s, g)),
"consistent getOption with modifyId" -> Prop.forAll((s: S, i: I) => laws(i).consistentGetOptionModifyId(s))
)
}
Expand Down

0 comments on commit 0c10867

Please sign in to comment.