summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoreth-p <32112321+eth-p@users.noreply.github.com>2018-09-10 19:20:09 -0700
committereth-p <32112321+eth-p@users.noreply.github.com>2018-09-10 19:20:09 -0700
commit7cdcdbb31dbe8442660415626e22358f8ef9591c (patch)
tree5fbd87cfdc1a5e398046dbb8e2e6ff249e78a564 /tests
parent91593417141c49b6f2a0755f989e7a3fb9bae310 (diff)
Updated snapshots.
Diffstat (limited to 'tests')
-rw-r--r--tests/snapshots/output/changes.snapshot.txt16
-rw-r--r--tests/snapshots/output/changes_grid.snapshot.txt (renamed from tests/snapshots/output/changes,grid.snapshot.txt)16
-rw-r--r--tests/snapshots/output/changes_grid_header.snapshot.txt (renamed from tests/snapshots/output/changes,grid,header.snapshot.txt)16
-rw-r--r--tests/snapshots/output/changes_grid_header_numbers.snapshot.txt40
-rw-r--r--tests/snapshots/output/changes_grid_numbers.snapshot.txt (renamed from tests/snapshots/output/changes,grid,numbers.snapshot.txt)16
-rw-r--r--tests/snapshots/output/changes_header.snapshot.txt (renamed from tests/snapshots/output/changes,header.snapshot.txt)16
-rw-r--r--tests/snapshots/output/changes_header_numbers.snapshot.txt (renamed from tests/snapshots/output/changes,header,numbers.snapshot.txt)16
-rw-r--r--tests/snapshots/output/changes_numbers.snapshot.txt (renamed from tests/snapshots/output/changes,numbers.snapshot.txt)16
-rw-r--r--tests/snapshots/output/full.snapshot.txt16
-rw-r--r--tests/snapshots/output/grid.snapshot.txt14
-rw-r--r--tests/snapshots/output/grid_header.snapshot.txt (renamed from tests/snapshots/output/grid,header.snapshot.txt)14
-rw-r--r--tests/snapshots/output/grid_header_numbers.snapshot.txt (renamed from tests/snapshots/output/grid,header,numbers.snapshot.txt)14
-rw-r--r--tests/snapshots/output/grid_numbers.snapshot.txt (renamed from tests/snapshots/output/grid,numbers.snapshot.txt)14
-rw-r--r--tests/snapshots/output/header.snapshot.txt14
-rw-r--r--tests/snapshots/output/header_numbers.snapshot.txt (renamed from tests/snapshots/output/header,numbers.snapshot.txt)14
-rw-r--r--tests/snapshots/output/numbers.snapshot.txt14
-rw-r--r--tests/snapshots/output/plain.snapshot.txt14
-rw-r--r--tests/snapshots/output/tabs_4.snapshot.txt40
-rw-r--r--tests/snapshots/output/tabs_8.snapshot.txt40
-rw-r--r--tests/snapshots/output/tabs_passthrough.snapshot.txt (renamed from tests/snapshots/output/changes,grid,header,numbers.snapshot.txt)16
20 files changed, 367 insertions, 9 deletions
diff --git a/tests/snapshots/output/changes.snapshot.txt b/tests/snapshots/output/changes.snapshot.txt
index 28d87201..73520d6f 100644
--- a/tests/snapshots/output/changes.snapshot.txt
+++ b/tests/snapshots/output/changes.snapshot.txt
@@ -16,7 +16,21 @@ _ fn main() {
fn area(rectangle: &Rectangle) -> u32 {
rectangle.width * rectangle.height
}
-+
+
+ fn perimeter(rectangle: &Rectangle) -> u32 {
+ (rectangle.width + rectangle.height) * 2
+ }
++
+ // Tab alignment:
+ /*
+ Indent
+ 1 2 3 4
+ 1 ?
+ 22 ?
+ 333 ?
+ 4444 ?
+ 55555 ?
+ 666666 ?
+ 7777777 ?
+ 88888888 ?
+~ */
diff --git a/tests/snapshots/output/changes,grid.snapshot.txt b/tests/snapshots/output/changes_grid.snapshot.txt
index 3350711a..83e75583 100644
--- a/tests/snapshots/output/changes,grid.snapshot.txt
+++ b/tests/snapshots/output/changes_grid.snapshot.txt
@@ -16,8 +16,22 @@ _ │ fn main() {
│ fn area(rectangle: &Rectangle) -> u32 {
│ rectangle.width * rectangle.height
│ }
-+ │
+ │
+ │ fn perimeter(rectangle: &Rectangle) -> u32 {
+ │ (rectangle.width + rectangle.height) * 2
+ │ }
++ │
+ │ // Tab alignment:
+ │ /*
+ │ Indent
+ │ 1 2 3 4
+ │ 1 ?
+ │ 22 ?
+ │ 333 ?
+ │ 4444 ?
+ │ 55555 ?
+ │ 666666 ?
+ │ 7777777 ?
+ │ 88888888 ?
+~ │ */
──┴─────────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/changes,grid,header.snapshot.txt b/tests/snapshots/output/changes_grid_header.snapshot.txt
index 655b6e24..0a32baa8 100644
--- a/tests/snapshots/output/changes,grid,header.snapshot.txt
+++ b/tests/snapshots/output/changes_grid_header.snapshot.txt
@@ -19,8 +19,22 @@ _ │ fn main() {
│ fn area(rectangle: &Rectangle) -> u32 {
│ rectangle.width * rectangle.height
│ }
-+ │
+ │
+ │ fn perimeter(rectangle: &Rectangle) -> u32 {
+ │ (rectangle.width + rectangle.height) * 2
+ │ }
++ │
+ │ // Tab alignment:
+ │ /*
+ │ Indent
+ │ 1 2 3 4
+ │ 1 ?
+ │ 22 ?
+ │ 333 ?
+ │ 4444 ?
+ │ 55555 ?
+ │ 666666 ?
+ │ 7777777 ?
+ │ 88888888 ?
+~ │ */
──┴─────────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/changes_grid_header_numbers.snapshot.txt b/tests/snapshots/output/changes_grid_header_numbers.snapshot.txt
new file mode 100644
index 00000000..221306da
--- /dev/null
+++ b/tests/snapshots/output/changes_grid_header_numbers.snapshot.txt
@@ -0,0 +1,40 @@
+───────┬────────────────────────────────────────────────────────────────────────
+ │ 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/changes,grid,numbers.snapshot.txt b/tests/snapshots/output/changes_grid_numbers.snapshot.txt
index 0d718425..1e1789ee 100644
--- a/tests/snapshots/output/changes,grid,numbers.snapshot.txt
+++ b/tests/snapshots/output/changes_grid_numbers.snapshot.txt
@@ -16,8 +16,22 @@
16 │ fn area(rectangle: &Rectangle) -> u32 {
17 │ rectangle.width * rectangle.height
18 │ }
- 19 + │
+ 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/changes,header.snapshot.txt b/tests/snapshots/output/changes_header.snapshot.txt
index 82fe8c47..8d1d1b8a 100644
--- a/tests/snapshots/output/changes,header.snapshot.txt
+++ b/tests/snapshots/output/changes_header.snapshot.txt
@@ -17,7 +17,21 @@ _ fn main() {
fn area(rectangle: &Rectangle) -> u32 {
rectangle.width * rectangle.height
}
-+
+
+ fn perimeter(rectangle: &Rectangle) -> u32 {
+ (rectangle.width + rectangle.height) * 2
+ }
++
+ // Tab alignment:
+ /*
+ Indent
+ 1 2 3 4
+ 1 ?
+ 22 ?
+ 333 ?
+ 4444 ?
+ 55555 ?
+ 666666 ?
+ 7777777 ?
+ 88888888 ?
+~ */
diff --git a/tests/snapshots/output/changes,header,numbers.snapshot.txt b/tests/snapshots/output/changes_header_numbers.snapshot.txt
index 77145eb9..ddc32872 100644
--- a/tests/snapshots/output/changes,header,numbers.snapshot.txt
+++ b/tests/snapshots/output/changes_header_numbers.snapshot.txt
@@ -17,7 +17,21 @@
16 fn area(rectangle: &Rectangle) -> u32 {
17 rectangle.width * rectangle.height
18 }
- 19 +
+ 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/changes,numbers.snapshot.txt b/tests/snapshots/output/changes_numbers.snapshot.txt
index bdfe745b..298ee617 100644
--- a/tests/snapshots/output/changes,numbers.snapshot.txt
+++ b/tests/snapshots/output/changes_numbers.snapshot.txt
@@ -16,7 +16,21 @@
16 fn area(rectangle: &Rectangle) -> u32 {
17 rectangle.width * rectangle.height
18 }
- 19 +
+ 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/full.snapshot.txt b/tests/snapshots/output/full.snapshot.txt
index cee4737f..221306da 100644
--- a/tests/snapshots/output/full.snapshot.txt
+++ b/tests/snapshots/output/full.snapshot.txt
@@ -19,8 +19,22 @@
16 │ fn area(rectangle: &Rectangle) -> u32 {
17 │ rectangle.width * rectangle.height
18 │ }
- 19 + │
+ 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/grid.snapshot.txt b/tests/snapshots/output/grid.snapshot.txt
index bef9a7e6..45917643 100644
--- a/tests/snapshots/output/grid.snapshot.txt
+++ b/tests/snapshots/output/grid.snapshot.txt
@@ -20,4 +20,18 @@ fn area(rectangle: &Rectangle) -> u32 {
fn perimeter(rectangle: &Rectangle) -> u32 {
(rectangle.width + rectangle.height) * 2
}
+
+// Tab alignment:
+/*
+ Indent
+ 1 2 3 4
+1 ?
+22 ?
+333 ?
+4444 ?
+55555 ?
+666666 ?
+7777777 ?
+88888888 ?
+*/
────────────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/grid,header.snapshot.txt b/tests/snapshots/output/grid_header.snapshot.txt
index 50c16941..fa74ec09 100644
--- a/tests/snapshots/output/grid,header.snapshot.txt
+++ b/tests/snapshots/output/grid_header.snapshot.txt
@@ -23,4 +23,18 @@ fn area(rectangle: &Rectangle) -> u32 {
fn perimeter(rectangle: &Rectangle) -> u32 {
(rectangle.width + rectangle.height) * 2
}
+
+// Tab alignment:
+/*
+ Indent
+ 1 2 3 4
+1 ?
+22 ?
+333 ?
+4444 ?
+55555 ?
+666666 ?
+7777777 ?
+88888888 ?
+*/
────────────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/grid,header,numbers.snapshot.txt b/tests/snapshots/output/grid_header_numbers.snapshot.txt
index e9f1a9cf..733b9848 100644
--- a/tests/snapshots/output/grid,header,numbers.snapshot.txt
+++ b/tests/snapshots/output/grid_header_numbers.snapshot.txt
@@ -23,4 +23,18 @@
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/grid,numbers.snapshot.txt b/tests/snapshots/output/grid_numbers.snapshot.txt
index 799f9617..c7d8fb13 100644
--- a/tests/snapshots/output/grid,numbers.snapshot.txt
+++ b/tests/snapshots/output/grid_numbers.snapshot.txt
@@ -20,4 +20,18 @@
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/header.snapshot.txt b/tests/snapshots/output/header.snapshot.txt
index 0889edfd..6b9b5701 100644
--- a/tests/snapshots/output/header.snapshot.txt
+++ b/tests/snapshots/output/header.snapshot.txt
@@ -21,3 +21,17 @@ fn area(rectangle: &Rectangle) -> u32 {
fn perimeter(rectangle: &Rectangle) -> u32 {
(rectangle.width + rectangle.height) * 2
}
+
+// Tab alignment:
+/*
+ Indent
+ 1 2 3 4
+1 ?
+22 ?
+333 ?
+4444 ?
+55555 ?
+666666 ?
+7777777 ?
+88888888 ?
+*/
diff --git a/tests/snapshots/output/header,numbers.snapshot.txt b/tests/snapshots/output/header_numbers.snapshot.txt
index a681e6b4..4d445b5f 100644
--- a/tests/snapshots/output/header,numbers.snapshot.txt
+++ b/tests/snapshots/output/header_numbers.snapshot.txt
@@ -21,3 +21,17 @@
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/numbers.snapshot.txt b/tests/snapshots/output/numbers.snapshot.txt
index c1341d29..90ca33c5 100644
--- a/tests/snapshots/output/numbers.snapshot.txt
+++ b/tests/snapshots/output/numbers.snapshot.txt
@@ -20,3 +20,17 @@
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/plain.snapshot.txt b/tests/snapshots/output/plain.snapshot.txt
index dbc49f9f..7188c21f 100644
--- a/tests/snapshots/output/plain.snapshot.txt
+++ b/tests/snapshots/output/plain.snapshot.txt
@@ -20,3 +20,17 @@ fn area(rectangle: &Rectangle) -> u32 {
fn perimeter(rectangle: &Rectangle) -> u32 {
(rectangle.width + rectangle.height) * 2
}
+
+// Tab alignment:
+/*
+ Indent
+ 1 2 3 4
+1 ?
+22 ?
+333 ?
+4444 ?
+55555 ?
+666666 ?
+7777777 ?
+88888888 ?
+*/
diff --git a/tests/snapshots/output/tabs_4.snapshot.txt b/tests/snapshots/output/tabs_4.snapshot.txt
new file mode 100644
index 00000000..87689c7b
--- /dev/null
+++ b/tests/snapshots/output/tabs_4.snapshot.txt
@@ -0,0 +1,40 @@
+───────┬────────────────────────────────────────────────────────────────────────
+ │ 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
new file mode 100644
index 00000000..221306da
--- /dev/null
+++ b/tests/snapshots/output/tabs_8.snapshot.txt
@@ -0,0 +1,40 @@
+───────┬────────────────────────────────────────────────────────────────────────
+ │ 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/changes,grid,header,numbers.snapshot.txt b/tests/snapshots/output/tabs_passthrough.snapshot.txt
index cee4737f..3ad018a1 100644
--- a/tests/snapshots/output/changes,grid,header,numbers.snapshot.txt
+++ b/tests/snapshots/output/tabs_passthrough.snapshot.txt
@@ -19,8 +19,22 @@
16 │ fn area(rectangle: &Rectangle) -> u32 {
17 │ rectangle.width * rectangle.height
18 │ }
- 19 + │
+ 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 ~ │ */
───────┴────────────────────────────────────────────────────────────────────────