-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a regression test for handling of
///
comments
#1153 PiperOrigin-RevId: 673574143
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 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
15 changes: 15 additions & 0 deletions
15
core/src/test/resources/com/google/googlejavaformat/java/testdata/I1153.input
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,15 @@ | ||
class I1153 { | ||
void f() { | ||
//// (1) one | ||
int one; | ||
|
||
//// (2) two | ||
int two; | ||
|
||
//// (2.1) if we need to collect data using multiple different collectors, e.g. taxonomy and | ||
//// ranges, or even two taxonomy facets that use different Category List Field, we can | ||
//// use MultiCollectorManager, e.g.: | ||
// TODO: This should be (2.1) two point one | ||
int twoPointOne; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
core/src/test/resources/com/google/googlejavaformat/java/testdata/I1153.output
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,15 @@ | ||
class I1153 { | ||
void f() { | ||
//// (1) one | ||
int one; | ||
|
||
//// (2) two | ||
int two; | ||
|
||
//// (2.1) if we need to collect data using multiple different collectors, e.g. taxonomy and | ||
//// ranges, or even two taxonomy facets that use different Category List Field, we can | ||
//// use MultiCollectorManager, e.g.: | ||
// TODO: This should be (2.1) two point one | ||
int twoPointOne; | ||
} | ||
} |