Skip to content

Commit

Permalink
test: remove redundant formatter tests (#747)
Browse files Browse the repository at this point in the history
Closes #745

### Summary of Changes

Formatting tests were difficult to maintain since several tests were
testing the same rules in different contexts, including the formatting
for
* lists of constraints,
* lists of parameters,
* lists of results,
* lists of type parameter,
* classes (global vs. nested),
* enum (global vs. nested),
* functions (global vs. method).

This made changes and additions cumbersome. This PR extracts the tests
for these rules and removes the redundant ones.
  • Loading branch information
lars-reimann authored Nov 9, 2023
1 parent fe1a115 commit 6510555
Show file tree
Hide file tree
Showing 284 changed files with 68 additions and 2,369 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
annotation MyAnnotation ( a : Int )
annotation MyAnnotation where {
}

// -----------------------------------------------------------------------------

annotation MyAnnotation(a: Int)
annotation MyAnnotation where {}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
class MyClass {
@Annotation fun myFunction ( )
@MyAnnotation fun myFunction ( )
}


// -----------------------------------------------------------------------------

class MyClass {
@Annotation
@MyAnnotation
fun myFunction()
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
class MyClass {
fun myFunction < out T > ( )
@MyAnnotation static fun myFunction ( )
}

// -----------------------------------------------------------------------------

class MyClass {
fun myFunction<out T>()
@MyAnnotation
static fun myFunction()
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6510555

Please sign in to comment.