Skip to content

Commit

Permalink
Test indentOperator with continuationIndent
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Jan 16, 2025
1 parent 2305a76 commit 940a57e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions scalafmt-tests/shared/src/test/resources/test/IndentOperator.stat
Original file line number Diff line number Diff line change
Expand Up @@ -4068,3 +4068,20 @@ object A {

/* Some comment */
}
<<< #4717 interplay between indentOperator and continuationIndent
maxColumn = 80
indentOperator.topLevelOnly = true
continuationIndent {
callSite = 2
defnSite = 2
}
===
final case class Appends(
offset: Offset,
records: NonEmptyList[ActionRecord[Action.Append]],
) extends Batch_4_1_0
>>>
final case class Appends(
offset: Offset,
records: NonEmptyList[ActionRecord[Action.Append]]
) extends Batch_4_1_0
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class FormatTests extends FunSuite with CanRunTests with FormatAssertions {
val explored = Debug.explored.get()
logger.debug(s"Total explored: $explored")
if (!onlyUnit && !onlyManual)
assertEquals(explored, 1252791, "total explored")
assertEquals(explored, 1252841, "total explored")
val results = debugResults.result()
// TODO(olafur) don't block printing out test results.
// I don't want to deal with scalaz's Tasks :'(
Expand Down

0 comments on commit 940a57e

Please sign in to comment.