Add a test for removing nested parens

This commit is contained in:
Seiichi Uchida 2018-03-08 20:25:06 +09:00
parent a6b574bfa7
commit 06f5d55dde
2 changed files with 16 additions and 0 deletions

8
tests/source/paren.rs Normal file
View File

@ -0,0 +1,8 @@
// Remove nested parens.
fn main() {
let x = (((1)));
let y = (/* comment */((2)));
let z = (((3)/* comment */));
let a = (((4/* comment */)));
}

8
tests/target/paren.rs Normal file
View File

@ -0,0 +1,8 @@
// Remove nested parens.
fn main() {
let x = (1);
let y = (/* comment */(2));
let z = ((3)/* comment */);
let a = (4/* comment */);
}