Skip to content

Commit 77193eb

Browse files
committed
test: add tests for match_arm_wrapping
1 parent 5c63ecd commit 77193eb

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// rustfmt-match_arm_wrapping: Default
2+
// Wrap match-arms
3+
4+
fn main() {
5+
match lorem {
6+
true => foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),
7+
false => {
8+
println!("{}", sit)
9+
}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// rustfmt-match_arm_wrapping: NoBlockFirstLine
2+
// Wrap match-arms
3+
4+
fn main() {
5+
match lorem {
6+
true => foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),
7+
false => {
8+
println!("{}", sit)
9+
}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// rustfmt-match_arm_wrapping: Default
2+
// Wrap match-arms
3+
4+
fn main() {
5+
match lorem {
6+
true => {
7+
foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)
8+
}
9+
false => {
10+
println!("{}", sit)
11+
}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// rustfmt-match_arm_wrapping: NoBlockFirstLine
2+
// Wrap match-arms
3+
4+
fn main() {
5+
match lorem {
6+
true =>
7+
foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x),
8+
false => {
9+
println!("{}", sit)
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)