Skip to content

Commit

Permalink
Reformat with scalafmt 3.7.15
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
scala-steward committed Oct 25, 2023
1 parent 37e2d09 commit 48e3c4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ class LiteralTypeTest extends AnyFlatSpec with Matchers {
Test1["foo"]("foo").modify["foo"](_.f).setTo("bar")
""")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ModifyEachWhereTest extends AnyFlatSpec with Matchers {

Seq(Foo("asdf"))
.modify(_.eachWhere(_.field != lang2).field)
.setTo(lang2) should be (Seq(Foo("hey")))
.setTo(lang2) should be(Seq(Foo("hey")))
}

it should "not modify an optional case class field if it is none regardless of the condition" in {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ object TestData {
case class Address(street: Option[Street])
case class Person(addresses: List[Address])

val person = Person(List(
Address(Some(Street("1 Functional Rd."))),
Address(Some(Street("2 Imperative Dr.")))
))
val person = Person(
List(
Address(Some(Street("1 Functional Rd."))),
Address(Some(Street("2 Imperative Dr.")))
)
)

case class Foo(field: String)
}

0 comments on commit 48e3c4c

Please sign in to comment.