aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/dart/switch.dart
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/dart/switch.dart')
-rw-r--r--tests/indent/dart/switch.dart30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/indent/dart/switch.dart b/tests/indent/dart/switch.dart
new file mode 100644
index 000000000..489c7b22a
--- /dev/null
+++ b/tests/indent/dart/switch.dart
@@ -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:
+ }
+}