mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[tests] extends switch expression formatting test case
This commit is contained in:
+4
-2
@@ -735,7 +735,9 @@ public class JavaFormatterSpaceTest extends AbstractJavaFormatterTest {
|
||||
}
|
||||
|
||||
public void testSwitchExpression() {
|
||||
doMethodTest("String s = switch\n(i ){}",
|
||||
"String s = switch (i) {\n}");
|
||||
doMethodTest("String s = switch\n(i ){default -> null;}",
|
||||
"String s = switch (i) {\n" +
|
||||
" default -> null;\n" +
|
||||
"}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user