-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify QualExpr tests and fix nested QualExprs config
Only two tests were kept: short and long QualExpr. If 'f_r_expr' is an Aggregate or BracketAggregate is not important for QualExpr. A test was added to Aggregate to make sure nested QualExpr, or more generaly, nested AggregateAssoc work as expected.
- Loading branch information
1 parent
e951332
commit 2f6f9c5
Showing
17 changed files
with
40 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Formatted_Edits' | ||
(Unit => Unit, | ||
Edit => Text_Edit'(Location => Text_Edit_Sloc, Text => Prettier_Ada.Documents.Format (Long_Document, Format_Options)), | ||
Formatted => Enclosing_Node, | ||
Diagnostics => Diagnostics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Formatted_Edits' | ||
(Unit => Unit, | ||
Edit => | ||
Text_Edit' | ||
(Location => Text_Edit_Sloc, | ||
Text => | ||
Prettier_Ada.Documents.Format (Long_Document, Format_Options)), | ||
Formatted => Enclosing_Node, | ||
Diagnostics => Diagnostics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: | | ||
This test checks the formatting of a qualified expression inside another | ||
qualified expression. | ||
driver: unparser | ||
rule: expr |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
VeeeeeeeeeeeeeeeeeeeerrrrrrrrrrryLooooooooooooooooooooonnnnnnnngQualName'[Val1,Val2] | ||
VeeeeeeeeeeeeeeeeeeeerrrrrrrrrrryLooooooooooooooooooooonnnnnnnngQualName' | ||
[Val_11111111111111111111111111111, | ||
Val22222222222222222222222222222222222222] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
VeeeeeeeeeeeeeeeeeeeerrrrrrrrrrryLooooooooooooooooooooonnnnnnnngQualName' | ||
[Val1, Val2] | ||
[Val_11111111111111111111111111111, | ||
Val22222222222222222222222222222222222222] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
description: | | ||
This test checks the formatting of a qualified expression. | ||
It is expected the declaration breaks after `'` and the new | ||
line be indented. | ||
line be indented. It is also expected that the indentation of the aggregate | ||
members is relative to the `(` token. | ||
driver: unparser | ||
rule: expr |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
description: | | ||
This test checks the formatting of a short qualified expression with | ||
parenthesis. It is expected the qualified expression stays on a single | ||
line. | ||
driver: unparser | ||
rule: expr |