Skip to content

Commit 06f5d55

Browse files
committed
Add a test for removing nested parens
1 parent a6b574b commit 06f5d55

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/source/paren.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Remove nested parens.
2+
3+
fn main() {
4+
let x = (((1)));
5+
let y = (/* comment */((2)));
6+
let z = (((3)/* comment */));
7+
let a = (((4/* comment */)));
8+
}

tests/target/paren.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Remove nested parens.
2+
3+
fn main() {
4+
let x = (1);
5+
let y = (/* comment */(2));
6+
let z = ((3)/* comment */);
7+
let a = (4/* comment */);
8+
}

0 commit comments

Comments
 (0)