Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.2.2
1c7df8c740764927fd3962f34081dc1d0840e43f

# Scala Steward: Reformat with scalafmt 3.7.17
f3e9d962fa8ceb0db3cec08bac9e4d05635f0908
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.3
version = 3.7.17
maxColumn = 120
runner.dialect = scala3
fileOverride {
Expand Down
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)
}