From cbed338c3a640c849f932e162ec3685867028f48 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Thu, 1 Nov 2018 14:48:05 +0100 Subject: [PATCH] Remove generation code for tabs_ tests --- tests/snapshots/generate_snapshots.py | 7 ----- tests/snapshots/output/tabs_4.snapshot.txt | 26 ------------------- .../output/tabs_4_wrapped.snapshot.txt | 26 ------------------- tests/snapshots/output/tabs_8.snapshot.txt | 26 ------------------- .../output/tabs_8_wrapped.snapshot.txt | 26 ------------------- .../output/tabs_passthrough.snapshot.txt | 26 ------------------- .../tabs_passthrough_wrapped.snapshot.txt | 26 ------------------- 7 files changed, 163 deletions(-) delete mode 100644 tests/snapshots/output/tabs_4.snapshot.txt delete mode 100644 tests/snapshots/output/tabs_4_wrapped.snapshot.txt delete mode 100644 tests/snapshots/output/tabs_8.snapshot.txt delete mode 100644 tests/snapshots/output/tabs_8_wrapped.snapshot.txt delete mode 100644 tests/snapshots/output/tabs_passthrough.snapshot.txt delete mode 100644 tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt diff --git a/tests/snapshots/generate_snapshots.py b/tests/snapshots/generate_snapshots.py index fcbfdba9..fd17b285 100755 --- a/tests/snapshots/generate_snapshots.py +++ b/tests/snapshots/generate_snapshots.py @@ -17,13 +17,6 @@ def generate_snapshots(): for style in collective_styles: generate_style_snapshot(style) - generate_snapshot("tabs_passthrough", "--tabs=0 --style=full --wrap=never") - generate_snapshot("tabs_passthrough_wrapped", "--tabs=0 --style=full --wrap=character") - generate_snapshot("tabs_4", "--tabs=4 --style=full --wrap=never") - generate_snapshot("tabs_4_wrapped", "--tabs=4 --style=full --wrap=character") - generate_snapshot("tabs_8", "--tabs=8 --style=full --wrap=never") - generate_snapshot("tabs_8_wrapped", "--tabs=8 --style=full --wrap=character") - def generate_style_snapshot(style): generate_snapshot(style.replace(",", "_"), "--style={}".format(style)) diff --git a/tests/snapshots/output/tabs_4.snapshot.txt b/tests/snapshots/output/tabs_4.snapshot.txt deleted file mode 100644 index cee4737f..00000000 --- a/tests/snapshots/output/tabs_4.snapshot.txt +++ /dev/null @@ -1,26 +0,0 @@ -───────┬──────────────────────────────────────────────────────────────────────── - │ File: sample.rs -───────┼──────────────────────────────────────────────────────────────────────── - 1 │ struct Rectangle { - 2 │ width: u32, - 3 │ height: u32, - 4 │ } - 5 │ - 6 _ │ fn main() { - 7 │ let rect1 = Rectangle { width: 30, height: 50 }; - 8 │ - 9 │ println!( - 10 ~ │ "The perimeter of the rectangle is {} pixels.", - 11 ~ │ perimeter(&rect1) - 12 │ ); - 13 + │ println!(r#"This line contains invalid utf8: "�����"#; - 14 │ } - 15 │ - 16 │ fn area(rectangle: &Rectangle) -> u32 { - 17 │ rectangle.width * rectangle.height - 18 │ } - 19 + │ - 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { - 21 + │ (rectangle.width + rectangle.height) * 2 - 22 + │ } -───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_4_wrapped.snapshot.txt b/tests/snapshots/output/tabs_4_wrapped.snapshot.txt deleted file mode 100644 index cee4737f..00000000 --- a/tests/snapshots/output/tabs_4_wrapped.snapshot.txt +++ /dev/null @@ -1,26 +0,0 @@ -───────┬──────────────────────────────────────────────────────────────────────── - │ File: sample.rs -───────┼──────────────────────────────────────────────────────────────────────── - 1 │ struct Rectangle { - 2 │ width: u32, - 3 │ height: u32, - 4 │ } - 5 │ - 6 _ │ fn main() { - 7 │ let rect1 = Rectangle { width: 30, height: 50 }; - 8 │ - 9 │ println!( - 10 ~ │ "The perimeter of the rectangle is {} pixels.", - 11 ~ │ perimeter(&rect1) - 12 │ ); - 13 + │ println!(r#"This line contains invalid utf8: "�����"#; - 14 │ } - 15 │ - 16 │ fn area(rectangle: &Rectangle) -> u32 { - 17 │ rectangle.width * rectangle.height - 18 │ } - 19 + │ - 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { - 21 + │ (rectangle.width + rectangle.height) * 2 - 22 + │ } -───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_8.snapshot.txt b/tests/snapshots/output/tabs_8.snapshot.txt deleted file mode 100644 index cee4737f..00000000 --- a/tests/snapshots/output/tabs_8.snapshot.txt +++ /dev/null @@ -1,26 +0,0 @@ -───────┬──────────────────────────────────────────────────────────────────────── - │ File: sample.rs -───────┼──────────────────────────────────────────────────────────────────────── - 1 │ struct Rectangle { - 2 │ width: u32, - 3 │ height: u32, - 4 │ } - 5 │ - 6 _ │ fn main() { - 7 │ let rect1 = Rectangle { width: 30, height: 50 }; - 8 │ - 9 │ println!( - 10 ~ │ "The perimeter of the rectangle is {} pixels.", - 11 ~ │ perimeter(&rect1) - 12 │ ); - 13 + │ println!(r#"This line contains invalid utf8: "�����"#; - 14 │ } - 15 │ - 16 │ fn area(rectangle: &Rectangle) -> u32 { - 17 │ rectangle.width * rectangle.height - 18 │ } - 19 + │ - 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { - 21 + │ (rectangle.width + rectangle.height) * 2 - 22 + │ } -───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_8_wrapped.snapshot.txt b/tests/snapshots/output/tabs_8_wrapped.snapshot.txt deleted file mode 100644 index cee4737f..00000000 --- a/tests/snapshots/output/tabs_8_wrapped.snapshot.txt +++ /dev/null @@ -1,26 +0,0 @@ -───────┬──────────────────────────────────────────────────────────────────────── - │ File: sample.rs -───────┼──────────────────────────────────────────────────────────────────────── - 1 │ struct Rectangle { - 2 │ width: u32, - 3 │ height: u32, - 4 │ } - 5 │ - 6 _ │ fn main() { - 7 │ let rect1 = Rectangle { width: 30, height: 50 }; - 8 │ - 9 │ println!( - 10 ~ │ "The perimeter of the rectangle is {} pixels.", - 11 ~ │ perimeter(&rect1) - 12 │ ); - 13 + │ println!(r#"This line contains invalid utf8: "�����"#; - 14 │ } - 15 │ - 16 │ fn area(rectangle: &Rectangle) -> u32 { - 17 │ rectangle.width * rectangle.height - 18 │ } - 19 + │ - 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { - 21 + │ (rectangle.width + rectangle.height) * 2 - 22 + │ } -───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_passthrough.snapshot.txt b/tests/snapshots/output/tabs_passthrough.snapshot.txt deleted file mode 100644 index cee4737f..00000000 --- a/tests/snapshots/output/tabs_passthrough.snapshot.txt +++ /dev/null @@ -1,26 +0,0 @@ -───────┬──────────────────────────────────────────────────────────────────────── - │ File: sample.rs -───────┼──────────────────────────────────────────────────────────────────────── - 1 │ struct Rectangle { - 2 │ width: u32, - 3 │ height: u32, - 4 │ } - 5 │ - 6 _ │ fn main() { - 7 │ let rect1 = Rectangle { width: 30, height: 50 }; - 8 │ - 9 │ println!( - 10 ~ │ "The perimeter of the rectangle is {} pixels.", - 11 ~ │ perimeter(&rect1) - 12 │ ); - 13 + │ println!(r#"This line contains invalid utf8: "�����"#; - 14 │ } - 15 │ - 16 │ fn area(rectangle: &Rectangle) -> u32 { - 17 │ rectangle.width * rectangle.height - 18 │ } - 19 + │ - 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { - 21 + │ (rectangle.width + rectangle.height) * 2 - 22 + │ } -───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt b/tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt deleted file mode 100644 index cee4737f..00000000 --- a/tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt +++ /dev/null @@ -1,26 +0,0 @@ -───────┬──────────────────────────────────────────────────────────────────────── - │ File: sample.rs -───────┼──────────────────────────────────────────────────────────────────────── - 1 │ struct Rectangle { - 2 │ width: u32, - 3 │ height: u32, - 4 │ } - 5 │ - 6 _ │ fn main() { - 7 │ let rect1 = Rectangle { width: 30, height: 50 }; - 8 │ - 9 │ println!( - 10 ~ │ "The perimeter of the rectangle is {} pixels.", - 11 ~ │ perimeter(&rect1) - 12 │ ); - 13 + │ println!(r#"This line contains invalid utf8: "�����"#; - 14 │ } - 15 │ - 16 │ fn area(rectangle: &Rectangle) -> u32 { - 17 │ rectangle.width * rectangle.height - 18 │ } - 19 + │ - 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 { - 21 + │ (rectangle.width + rectangle.height) * 2 - 22 + │ } -───────┴────────────────────────────────────────────────────────────────────────