Skip to content

Commit

Permalink
Add new given tests with different break
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Jan 16, 2025
1 parent 2305a76 commit 3224575
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7967,29 +7967,43 @@ lazy val onlyImplicitOrTypeParams = paramss.forall(
)
<<< scala-3.6 given 1
maxColumn = 40
runner.parser = source
===
given [A] =>
Seq[A] = foo
given [A]
=> Seq[A] = foo
>>>
given [A] =>
Seq[A] = foo
given [A] => Seq[A] = foo
<<< scala-3.6 given 2
maxColumn = 40
runner.parser = source
===
given [A] => (Seq[A] =>
List[A]) => List[A] = foo
given [A] => (Seq[A]
=> List[A]) => List[A] = foo
>>>
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
<<< scala-3.6 given 3
maxColumn = 40
runner.parser = source
===
given foo: (a: A) =>
[B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
given foo: (a: A)
=> [B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
>>>
given foo: (a: A) =>
[B, C <: AnyRef] => (b: B[A], C) =>
List[A] = foo
given foo: (a: A) => [B, C <: AnyRef] =>
(b: B[A], C) => List[A] = foo
<<< don't rewrite complex infix to braces
rewrite.redundantBraces.oneStatApply.bracesMinSpan = 1
rewrite.rules = [RedundantBraces, RedundantParens]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7647,25 +7647,39 @@ lazy val onlyImplicitOrTypeParams = paramss.forall(_.exists { sym =>
})
<<< scala-3.6 given 1
maxColumn = 40
runner.parser = source
===
given [A] =>
Seq[A] = foo
given [A]
=> Seq[A] = foo
>>>
given [A] => Seq[A] = foo
given [A] => Seq[A] = foo
<<< scala-3.6 given 2
maxColumn = 40
runner.parser = source
===
given [A] => (Seq[A] =>
List[A]) => List[A] = foo
given [A] => (Seq[A]
=> List[A]) => List[A] = foo
>>>
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
<<< scala-3.6 given 3
maxColumn = 40
runner.parser = source
===
given foo: (a: A) =>
[B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
given foo: (a: A)
=> [B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
>>>
given foo: (a: A) => [B, C <: AnyRef] =>
(b: B[A], C) => List[A] = foo
given foo: (a: A) => [B, C <: AnyRef] =>
(b: B[A], C) => List[A] = foo
<<< don't rewrite complex infix to braces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7990,29 +7990,43 @@ lazy val onlyImplicitOrTypeParams = paramss.forall(
)
<<< scala-3.6 given 1
maxColumn = 40
runner.parser = source
===
given [A] =>
Seq[A] = foo
given [A]
=> Seq[A] = foo
>>>
given [A] =>
Seq[A] = foo
given [A] => Seq[A] = foo
<<< scala-3.6 given 2
maxColumn = 40
runner.parser = source
===
given [A] => (Seq[A] =>
List[A]) => List[A] = foo
given [A] => (Seq[A]
=> List[A]) => List[A] = foo
>>>
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
<<< scala-3.6 given 3
maxColumn = 40
runner.parser = source
===
given foo: (a: A) =>
[B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
given foo: (a: A)
=> [B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
>>>
given foo: (a: A) =>
[B, C <: AnyRef] => (b: B[A], C) =>
List[A] = foo
given foo: (a: A) => [B, C <: AnyRef] =>
(b: B[A], C) => List[A] = foo
<<< don't rewrite complex infix to braces
rewrite.redundantBraces.oneStatApply.bracesMinSpan = 1
rewrite.rules = [RedundantBraces, RedundantParens]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8288,25 +8288,39 @@ lazy val onlyImplicitOrTypeParams = paramss.forall(
)
<<< scala-3.6 given 1
maxColumn = 40
runner.parser = source
===
given [A] =>
Seq[A] = foo
given [A]
=> Seq[A] = foo
>>>
given [A] => Seq[A] = foo
given [A] => Seq[A] = foo
<<< scala-3.6 given 2
maxColumn = 40
runner.parser = source
===
given [A] => (Seq[A] =>
List[A]) => List[A] = foo
given [A] => (Seq[A]
=> List[A]) => List[A] = foo
>>>
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
given [A] => (Seq[A] => List[A]) =>
List[A] = foo
<<< scala-3.6 given 3
maxColumn = 40
runner.parser = source
===
given foo: (a: A) =>
[B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
given foo: (a: A)
=> [B, C <: AnyRef] => (b: B[A], C) => List[A] = foo
>>>
given foo: (a: A) => [B, C <: AnyRef] =>
(b: B[A], C) => List[A] = foo
given foo: (a: A) => [B, C <: AnyRef] =>
(b: B[A], C) => List[A] = foo
<<< don't rewrite complex infix to braces
Expand Down
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, 1253679, "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 3224575

Please sign in to comment.