From ea1df1777b7120db4450933a5833a5103f842529 Mon Sep 17 00:00:00 2001 From: Sean Olson Date: Mon, 19 Jun 2017 08:12:15 -0700 Subject: [PATCH] Modify `control_brace_sytle` test to ensure `match` braces are formatted correctly. --- tests/source/configs-control_brace_style-always_next_line.rs | 4 ++++ tests/source/configs-control_brace_style-always_same_line.rs | 4 ++++ .../source/configs-control_brace_style-closing_next_line.rs | 4 ++++ tests/target/configs-control_brace_style-always_next_line.rs | 5 +++++ tests/target/configs-control_brace_style-always_same_line.rs | 4 ++++ .../target/configs-control_brace_style-closing_next_line.rs | 4 ++++ 6 files changed, 25 insertions(+) diff --git a/tests/source/configs-control_brace_style-always_next_line.rs b/tests/source/configs-control_brace_style-always_next_line.rs index 9cd0b2b7fbf..c4ddad9ce27 100644 --- a/tests/source/configs-control_brace_style-always_next_line.rs +++ b/tests/source/configs-control_brace_style-always_next_line.rs @@ -3,4 +3,8 @@ fn main() { if lorem { println!("ipsum!"); } else { println!("dolor!"); } + match magi { + Homura => "Akemi", + Madoka => "Kaname", + } } diff --git a/tests/source/configs-control_brace_style-always_same_line.rs b/tests/source/configs-control_brace_style-always_same_line.rs index f88a102fc63..a9c699d27e3 100644 --- a/tests/source/configs-control_brace_style-always_same_line.rs +++ b/tests/source/configs-control_brace_style-always_same_line.rs @@ -3,4 +3,8 @@ fn main() { if lorem { println!("ipsum!"); } else { println!("dolor!"); } + match magi { + Homura => "Akemi", + Madoka => "Kaname", + } } diff --git a/tests/source/configs-control_brace_style-closing_next_line.rs b/tests/source/configs-control_brace_style-closing_next_line.rs index b9410edba44..1a74a28f26a 100644 --- a/tests/source/configs-control_brace_style-closing_next_line.rs +++ b/tests/source/configs-control_brace_style-closing_next_line.rs @@ -3,4 +3,8 @@ fn main() { if lorem { println!("ipsum!"); } else { println!("dolor!"); } + match magi { + Homura => "Akemi", + Madoka => "Kaname", + } } diff --git a/tests/target/configs-control_brace_style-always_next_line.rs b/tests/target/configs-control_brace_style-always_next_line.rs index 74121aa44ae..7dc06f207fe 100644 --- a/tests/target/configs-control_brace_style-always_next_line.rs +++ b/tests/target/configs-control_brace_style-always_next_line.rs @@ -10,4 +10,9 @@ fn main() { { println!("dolor!"); } + match magi + { + Homura => "Akemi", + Madoka => "Kaname", + } } diff --git a/tests/target/configs-control_brace_style-always_same_line.rs b/tests/target/configs-control_brace_style-always_same_line.rs index da14b23971d..993b6b681fe 100644 --- a/tests/target/configs-control_brace_style-always_same_line.rs +++ b/tests/target/configs-control_brace_style-always_same_line.rs @@ -7,4 +7,8 @@ fn main() { } else { println!("dolor!"); } + match magi { + Homura => "Akemi", + Madoka => "Kaname", + } } diff --git a/tests/target/configs-control_brace_style-closing_next_line.rs b/tests/target/configs-control_brace_style-closing_next_line.rs index a7a3adc756a..013852ee79a 100644 --- a/tests/target/configs-control_brace_style-closing_next_line.rs +++ b/tests/target/configs-control_brace_style-closing_next_line.rs @@ -8,4 +8,8 @@ fn main() { else { println!("dolor!"); } + match magi { + Homura => "Akemi", + Madoka => "Kaname", + } }