summaryrefslogtreecommitdiffstats
path: root/tests/snapshots
diff options
context:
space:
mode:
authorLawrence Chou <lawrencechou1024@gmail.com>2018-10-15 23:22:23 +0800
committerDavid Peter <sharkdp@users.noreply.github.com>2018-10-19 21:04:46 +0200
commit58198d070070c4cf0f6c9dbac43481b8d7b445c7 (patch)
tree0ebe453f516134044df0c24603745840b6544146 /tests/snapshots
parentafc5aacb28563bbe0019a922d536660a14279da6 (diff)
rewrite 6 snapshot tests as integration test
Diffstat (limited to 'tests/snapshots')
-rw-r--r--tests/snapshots/output/tabs_4.snapshot.txt40
-rw-r--r--tests/snapshots/output/tabs_4_wrapped.snapshot.txt40
-rw-r--r--tests/snapshots/output/tabs_8.snapshot.txt40
-rw-r--r--tests/snapshots/output/tabs_8_wrapped.snapshot.txt40
-rw-r--r--tests/snapshots/output/tabs_passthrough.snapshot.txt40
-rw-r--r--tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt40
6 files changed, 0 insertions, 240 deletions
diff --git a/tests/snapshots/output/tabs_4.snapshot.txt b/tests/snapshots/output/tabs_4.snapshot.txt
deleted file mode 100644
index 87689c7b..00000000
--- a/tests/snapshots/output/tabs_4.snapshot.txt
+++ /dev/null
@@ -1,40 +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 + │ }
- 23 + │
- 24 │ // Tab alignment:
- 25 │ /*
- 26 │ Indent
- 27 │ 1 2 3 4
- 28 │ 1 ?
- 29 │ 22 ?
- 30 │ 333 ?
- 31 │ 4444 ?
- 32 │ 55555 ?
- 33 │ 666666 ?
- 34 │ 7777777 ?
- 35 │ 88888888 ?
- 36 ~ │ */
-───────┴────────────────────────────────────────────────────────────────────────
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 87689c7b..00000000
--- a/tests/snapshots/output/tabs_4_wrapped.snapshot.txt
+++ /dev/null
@@ -1,40 +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 + │ }
- 23 + │
- 24 │ // Tab alignment:
- 25 │ /*
- 26 │ Indent
- 27 │ 1 2 3 4
- 28 │ 1 ?
- 29 │ 22 ?
- 30 │ 333 ?
- 31 │ 4444 ?
- 32 │ 55555 ?
- 33 │ 666666 ?
- 34 │ 7777777 ?
- 35 │ 88888888 ?
- 36 ~ │ */
-───────┴────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/tabs_8.snapshot.txt b/tests/snapshots/output/tabs_8.snapshot.txt
deleted file mode 100644
index 221306da..00000000
--- a/tests/snapshots/output/tabs_8.snapshot.txt
+++ /dev/null
@@ -1,40 +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 + │ }
- 23 + │
- 24 │ // Tab alignment:
- 25 │ /*
- 26 │ Indent
- 27 │ 1 2 3 4
- 28 │ 1 ?
- 29 │ 22 ?
- 30 │ 333 ?
- 31 │ 4444 ?
- 32 │ 55555 ?
- 33 │ 666666 ?
- 34 │ 7777777 ?
- 35 │ 88888888 ?
- 36 ~ │ */
-───────┴────────────────────────────────────────────────────────────────────────
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 221306da..00000000
--- a/tests/snapshots/output/tabs_8_wrapped.snapshot.txt
+++ /dev/null
@@ -1,40 +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 + │ }
- 23 + │
- 24 │ // Tab alignment:
- 25 │ /*
- 26 │ Indent
- 27 │ 1 2 3 4
- 28 │ 1 ?
- 29 │ 22 ?
- 30 │ 333 ?
- 31 │ 4444 ?
- 32 │ 55555 ?
- 33 │ 666666 ?
- 34 │ 7777777 ?
- 35 │ 88888888 ?
- 36 ~ │ */
-───────┴────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/tabs_passthrough.snapshot.txt b/tests/snapshots/output/tabs_passthrough.snapshot.txt
deleted file mode 100644
index 3ad018a1..00000000
--- a/tests/snapshots/output/tabs_passthrough.snapshot.txt
+++ /dev/null
@@ -1,40 +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 + │ }
- 23 + │
- 24 │ // Tab alignment:
- 25 │ /*
- 26 │ Indent
- 27 │ 1 2 3 4
- 28 │ 1 ?
- 29 │ 22 ?
- 30 │ 333 ?
- 31 │ 4444 ?
- 32 │ 55555 ?
- 33 │ 666666 ?
- 34 │ 7777777 ?
- 35 │ 88888888 ?
- 36 ~ │ */
-───────┴────────────────────────────────────────────────────────────────────────
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 3ad018a1..00000000
--- a/tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt
+++ /dev/null
@@ -1,40 +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 + │ }
- 23 + │
- 24 │ // Tab alignment:
- 25 │ /*
- 26 │ Indent
- 27 │ 1 2 3 4
- 28 │ 1 ?
- 29 │ 22 ?
- 30 │ 333 ?
- 31 │ 4444 ?
- 32 │ 55555 ?
- 33 │ 666666 ?
- 34 │ 7777777 ?
- 35 │ 88888888 ?
- 36 ~ │ */
-───────┴────────────────────────────────────────────────────────────────────────