Formatter: add test for enum entry with comment
Relates to #KT-15980
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
enum class E1 {
|
||||
A, // A
|
||||
B, // B
|
||||
}
|
||||
|
||||
enum class E2 {
|
||||
A, // A
|
||||
B // B
|
||||
}
|
||||
|
||||
enum class E3 {
|
||||
A, /*A*/
|
||||
B /*B*/
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
enum class E1 {
|
||||
A, // A
|
||||
B, // B
|
||||
}
|
||||
|
||||
enum class E2 {
|
||||
A, // A
|
||||
B // B
|
||||
}
|
||||
|
||||
enum class E3 {
|
||||
A, /*A*/
|
||||
B /*B*/
|
||||
}
|
||||
@@ -310,6 +310,11 @@ public class FormatterTestGenerated extends AbstractFormatterTest {
|
||||
runTest("idea/testData/formatter/EnumArguments.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumEntiesWithComments.after.kt")
|
||||
public void testEnumEntiesWithComments() throws Exception {
|
||||
runTest("idea/testData/formatter/EnumEntiesWithComments.after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("EnumInitializerList.after.kt")
|
||||
public void testEnumInitializerList() throws Exception {
|
||||
runTest("idea/testData/formatter/EnumInitializerList.after.kt");
|
||||
|
||||
Reference in New Issue
Block a user