diff options
author | sharkdp <davidpeter@web.de> | 2018-11-01 14:48:05 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2018-11-01 15:30:58 +0100 |
commit | cbed338c3a640c849f932e162ec3685867028f48 (patch) | |
tree | 2d3f572c654a8182738914166814ef95d022c5fe | |
parent | 4492d99556bddd7d84c7a466d323c86cbac313c9 (diff) |
Remove generation code for tabs_ tests
-rwxr-xr-x | tests/snapshots/generate_snapshots.py | 7 | ||||
-rw-r--r-- | tests/snapshots/output/tabs_4.snapshot.txt | 26 | ||||
-rw-r--r-- | tests/snapshots/output/tabs_4_wrapped.snapshot.txt | 26 | ||||
-rw-r--r-- | tests/snapshots/output/tabs_8.snapshot.txt | 26 | ||||
-rw-r--r-- | tests/snapshots/output/tabs_8_wrapped.snapshot.txt | 26 | ||||
-rw-r--r-- | tests/snapshots/output/tabs_passthrough.snapshot.txt | 26 | ||||
-rw-r--r-- | tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt | 26 |
7 files changed, 0 insertions, 163 deletions
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 + │ } -───────┴──────────────────────────────────────────────────────────────────────── |