Skip to content

Commit

Permalink
Add tests with comments at opt-braces region end
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Dec 28, 2021
1 parent b54fd70 commit bfb89fb
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions scalafmt-tests/src/test/resources/unit/Comment.stat
Original file line number Diff line number Diff line change
Expand Up @@ -853,3 +853,43 @@ for {
case Left(error) => FC.raiseError(error)
}
} yield foo
<<< wrapping in optional braces 1
maxColumn = 20
runner.dialect = scala3
indent.callSite = 2
align.preset = none
comments.wrap = trailing
===
object a:
def foo =
bar
baz /* comment1 comment2
* comment3 */
val qux = foo
>>>
object a:
def foo =
bar
baz /* comment1
* comment2
* comment3 */
val qux = foo
<<< wrapping in optional braces 2
maxColumn = 20
runner.dialect = scala3
indent.callSite = 2
align.preset = none
comments.wrap = trailing
===
object a:
def foo =
bar
baz /* comment1 comment2
* comment3 */
>>>
object a:
def foo =
bar
baz /* comment1
* comment2
* comment3 */

0 comments on commit bfb89fb

Please sign in to comment.