Skip to content

Commit 9ed0541

Browse files
committed
Add more tests
1 parent 04449c6 commit 9ed0541

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

tests/source/remove_blank_lines.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ fn main() {
66
let x = 1;
77

88

9+
let y = 2;
10+
11+
12+
println!("x + y = {}", x + y);
13+
914

1015

1116
}
1217

18+
1319
fn foo() {
1420

1521
#![attribute]
@@ -20,3 +26,19 @@ fn foo() {
2026

2127

2228
}
29+
// comment after item
30+
31+
32+
// comment before item
33+
fn bar() {
34+
let x = 1;
35+
// comment after statement
36+
37+
38+
// comment before statment
39+
let y = 2;
40+
let z = 3;
41+
42+
43+
println!("x + y + z = {}", x + y + z);
44+
}

tests/target/remove_blank_lines.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
fn main() {
22
let x = 1;
3+
4+
let y = 2;
5+
6+
println!("x + y = {}", x + y);
37
}
48

59
fn foo() {
@@ -9,3 +13,16 @@ fn foo() {
913

1014
// comment
1115
}
16+
// comment after item
17+
18+
// comment before item
19+
fn bar() {
20+
let x = 1;
21+
// comment after statement
22+
23+
// comment before statment
24+
let y = 2;
25+
let z = 3;
26+
27+
println!("x + y + z = {}", x + y + z);
28+
}

0 commit comments

Comments
 (0)