on master help sign in
Remove generation code for tabs_ tests
cbed338sharkdp
tests/snapshots/generate_snapshots.py−7
@@ -17,13 +17,6 @@ def generate_snapshots():
17 for style in collective_styles:
17 for style in collective_styles:
18 generate_style_snapshot(style)
18 generate_style_snapshot(style)
19
19
20− generate_snapshot("tabs_passthrough", "--tabs=0 --style=full --wrap=never")
21− generate_snapshot("tabs_passthrough_wrapped", "--tabs=0 --style=full --wrap=character")
22− generate_snapshot("tabs_4", "--tabs=4 --style=full --wrap=never")
23− generate_snapshot("tabs_4_wrapped", "--tabs=4 --style=full --wrap=character")
24− generate_snapshot("tabs_8", "--tabs=8 --style=full --wrap=never")
25− generate_snapshot("tabs_8_wrapped", "--tabs=8 --style=full --wrap=character")
26−
27
20
28def generate_style_snapshot(style):
21def generate_style_snapshot(style):
29 generate_snapshot(style.replace(",", "_"), "--style={}".format(style))
22 generate_snapshot(style.replace(",", "_"), "--style={}".format(style))
tests/snapshots/output/tabs_4.snapshot.txtdeleted−26
@@ -1,26 +0,0 @@
1−───────┬────────────────────────────────────────────────────────────────────────
2− │ File: sample.rs
3−───────┼────────────────────────────────────────────────────────────────────────
4− 1 │ struct Rectangle {
5− 2 │ width: u32,
6− 3 │ height: u32,
7− 4 │ }
8− 5 │
9− 6 _ │ fn main() {
10− 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11− 8 │
12− 9 │ println!(
13− 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14− 11 ~ │ perimeter(&rect1)
15− 12 │ );
16− 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17− 14 │ }
18− 15 │
19− 16 │ fn area(rectangle: &Rectangle) -> u32 {
20− 17 │ rectangle.width * rectangle.height
21− 18 │ }
22− 19 + │
23− 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24− 21 + │ (rectangle.width + rectangle.height) * 2
25− 22 + │ }
26−───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_4_wrapped.snapshot.txtdeleted−26
@@ -1,26 +0,0 @@
1−───────┬────────────────────────────────────────────────────────────────────────
2− │ File: sample.rs
3−───────┼────────────────────────────────────────────────────────────────────────
4− 1 │ struct Rectangle {
5− 2 │ width: u32,
6− 3 │ height: u32,
7− 4 │ }
8− 5 │
9− 6 _ │ fn main() {
10− 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11− 8 │
12− 9 │ println!(
13− 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14− 11 ~ │ perimeter(&rect1)
15− 12 │ );
16− 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17− 14 │ }
18− 15 │
19− 16 │ fn area(rectangle: &Rectangle) -> u32 {
20− 17 │ rectangle.width * rectangle.height
21− 18 │ }
22− 19 + │
23− 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24− 21 + │ (rectangle.width + rectangle.height) * 2
25− 22 + │ }
26−───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_8.snapshot.txtdeleted−26
@@ -1,26 +0,0 @@
1−───────┬────────────────────────────────────────────────────────────────────────
2− │ File: sample.rs
3−───────┼────────────────────────────────────────────────────────────────────────
4− 1 │ struct Rectangle {
5− 2 │ width: u32,
6− 3 │ height: u32,
7− 4 │ }
8− 5 │
9− 6 _ │ fn main() {
10− 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11− 8 │
12− 9 │ println!(
13− 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14− 11 ~ │ perimeter(&rect1)
15− 12 │ );
16− 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17− 14 │ }
18− 15 │
19− 16 │ fn area(rectangle: &Rectangle) -> u32 {
20− 17 │ rectangle.width * rectangle.height
21− 18 │ }
22− 19 + │
23− 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24− 21 + │ (rectangle.width + rectangle.height) * 2
25− 22 + │ }
26−───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_8_wrapped.snapshot.txtdeleted−26
@@ -1,26 +0,0 @@
1−───────┬────────────────────────────────────────────────────────────────────────
2− │ File: sample.rs
3−───────┼────────────────────────────────────────────────────────────────────────
4− 1 │ struct Rectangle {
5− 2 │ width: u32,
6− 3 │ height: u32,
7− 4 │ }
8− 5 │
9− 6 _ │ fn main() {
10− 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11− 8 │
12− 9 │ println!(
13− 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14− 11 ~ │ perimeter(&rect1)
15− 12 │ );
16− 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17− 14 │ }
18− 15 │
19− 16 │ fn area(rectangle: &Rectangle) -> u32 {
20− 17 │ rectangle.width * rectangle.height
21− 18 │ }
22− 19 + │
23− 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24− 21 + │ (rectangle.width + rectangle.height) * 2
25− 22 + │ }
26−───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_passthrough.snapshot.txtdeleted−26
@@ -1,26 +0,0 @@
1−───────┬────────────────────────────────────────────────────────────────────────
2− │ File: sample.rs
3−───────┼────────────────────────────────────────────────────────────────────────
4− 1 │ struct Rectangle {
5− 2 │ width: u32,
6− 3 │ height: u32,
7− 4 │ }
8− 5 │
9− 6 _ │ fn main() {
10− 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11− 8 │
12− 9 │ println!(
13− 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14− 11 ~ │ perimeter(&rect1)
15− 12 │ );
16− 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17− 14 │ }
18− 15 │
19− 16 │ fn area(rectangle: &Rectangle) -> u32 {
20− 17 │ rectangle.width * rectangle.height
21− 18 │ }
22− 19 + │
23− 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24− 21 + │ (rectangle.width + rectangle.height) * 2
25− 22 + │ }
26−───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txtdeleted−26
@@ -1,26 +0,0 @@
1−───────┬────────────────────────────────────────────────────────────────────────
2− │ File: sample.rs
3−───────┼────────────────────────────────────────────────────────────────────────
4− 1 │ struct Rectangle {
5− 2 │ width: u32,
6− 3 │ height: u32,
7− 4 │ }
8− 5 │
9− 6 _ │ fn main() {
10− 7 │ let rect1 = Rectangle { width: 30, height: 50 };
11− 8 │
12− 9 │ println!(
13− 10 ~ │ "The perimeter of the rectangle is {} pixels.",
14− 11 ~ │ perimeter(&rect1)
15− 12 │ );
16− 13 + │ println!(r#"This line contains invalid utf8: "�����"#;
17− 14 │ }
18− 15 │
19− 16 │ fn area(rectangle: &Rectangle) -> u32 {
20− 17 │ rectangle.width * rectangle.height
21− 18 │ }
22− 19 + │
23− 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24− 21 + │ (rectangle.width + rectangle.height) * 2
25− 22 + │ }
26−───────┴────────────────────────────────────────────────────────────────────────