Formatter: add test for enum entry with comment

Relates to #KT-15980
This commit is contained in:
Dmitry Gridin
2019-11-27 15:00:22 +07:00
parent 97c8b2074e
commit 249789d6eb
3 changed files with 33 additions and 0 deletions
+14
View File
@@ -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*/
}
+14
View File
@@ -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");