fix(dart_indent): Fix dart case/default indent

add tests

add tests for fallthrough case

add more tests

keep functional tests
This commit is contained in:
Pham Huy Hoang 2023-04-13 01:42:53 +09:00 committed by Stephan Seitz
parent ba6c55b203
commit 36d4deb294
3 changed files with 49 additions and 2 deletions

View file

@ -0,0 +1,30 @@
void test() {
switch(a) {
case 1:
}
}
void test() {
switch(a) {
default:
}
}
void test_break_dedent() {
switch(x) {
case 1:
break;
}
switch(y) {
case 2:
return;
}
}
void test_multi_case() {
switch(x) {
case 1:
case 2:
}
}