Skip to content

Commit

Permalink
Add non-idempotent test on apply with assign
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Sep 7, 2020
1 parent aa08c8a commit ec99c5f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions scalafmt-tests/src/test/resources/default/Apply.stat
Original file line number Diff line number Diff line change
Expand Up @@ -1380,3 +1380,43 @@ class Test {
)
)
}
<<< #2175 1 nested assign with apply and long comment
preset = default
===
object a {
def i: Item =
i.copy(
name = b(c) // Very long comment here because I need to have more than 80 characters
)
}
>>>
Idempotency violated
object a {
def i: Item =
i.copy(
name =
b(
c
) // Very long comment here because I need to have more than 80 characters
)
}
<<< #2175 2 nested assign with apply and long comment
preset = default
===
object a {
def i: Item =
i.copy(
name = b(
c
) // Very long comment here because I need to have more than 80 characters
)
}
>>>
object a {
def i: Item =
i.copy(
name = b(
c
) // Very long comment here because I need to have more than 80 characters
)
}

0 comments on commit ec99c5f

Please sign in to comment.