Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ding-young committed Mar 3, 2024
1 parent efca09b commit ce0e40c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/source/arrow_in_comments/multiple_arrows.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// rustfmt-wrap_comments: true
fn main() {
match a {
_ => // comment with =>
match b {
// one goes to =>
one => {
println("1");
}
// two goes to =>
two => { println("2"); }
}
}
}
19 changes: 19 additions & 0 deletions tests/target/arrow_in_comments/multiple_arrows.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// rustfmt-wrap_comments: true
fn main() {
match a {
_ =>
// comment with =>
{
match b {
// one goes to =>
one => {
println("1");
}
// two goes to =>
two => {
println("2");
}
}
}
}
}

0 comments on commit ce0e40c

Please sign in to comment.