Skip to content

Commit

Permalink
Add tests with comments attached to comma
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Dec 26, 2021
1 parent 8222a01 commit a55aebb
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions scalafmt-tests/src/test/resources/unit/Comment.stat
Original file line number Diff line number Diff line change
Expand Up @@ -733,3 +733,54 @@ object a {
* IDs is requsted for MD5 and SHA1 and not for LUID */
) = ???
}
<<< overflow, comma, attached mlc then another arg after break
maxColumn = 10
===
foo(
barBarBar, /* comment */
qux
)
>>>
foo(
barBarBar,
/* comment */
qux
)
<<< overflow, comma, attached mlc then another arg after space
maxColumn = 10
===
foo(
barBarBar, /* comment */
bazBazBaz, /* comment */ qux
)
>>>
foo(
barBarBar,
/* comment */
bazBazBaz,
/* comment */ qux
)
<<< overflow, comma, attached mlc, binpack
maxColumn = 30
indent.callSite = 2
align.preset = none
binPack.preset = true
optIn.configStyleArguments = false
===
foo(barBarBarBar, /* c1 */ baz, /* c2 */ qux)
>>>
foo(barBarBarBar,
/* c1 */ baz, /* c2 */ qux)
<<< overflow, comma, attached mlc, binpack, fold
maxColumn = 30
indent.callSite = 2
align.preset = none
binPack.preset = true
optIn.configStyleArguments = false
newlines.source = fold
includeCurlyBraceInSelectChains = true
===
foo(barBarBarBar, /* c1 */ baz, /* c2 */ qux)
>>>
foo(barBarBarBar,
/* c1 */ baz, /* c2 */ qux)

0 comments on commit a55aebb

Please sign in to comment.