summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Peter <sharkdp@users.noreply.github.com>2018-05-16 08:41:49 +0200
committerGitHub <noreply@github.com>2018-05-16 08:41:49 +0200
commit2eee68599df671f7fd067a1121a4d01039c49d8e (patch)
tree9800c9f6d1b0a17ae00f55cc5606191850348ed6 /tests
parent54b33c8c21d327808bfdbd45083daf4638bfaff6 (diff)
parentd569693dab51d95e5e49be25435df2c4ba64ef37 (diff)
Merge pull request #102 from eth-p/master
Added text wrapping. (Fixes #54)
Diffstat (limited to 'tests')
-rw-r--r--tests/snapshots/output/changes,grid,header.snapshot.txt50
-rw-r--r--tests/snapshots/output/changes,grid.snapshot.txt44
-rw-r--r--tests/snapshots/output/grid,header,numbers.snapshot.txt50
-rw-r--r--tests/snapshots/output/grid,header.snapshot.txt50
-rw-r--r--tests/snapshots/output/grid,numbers.snapshot.txt44
-rw-r--r--tests/snapshots/output/grid.snapshot.txt44
6 files changed, 141 insertions, 141 deletions
diff --git a/tests/snapshots/output/changes,grid,header.snapshot.txt b/tests/snapshots/output/changes,grid,header.snapshot.txt
index cb53d7a8..cf739b4a 100644
--- a/tests/snapshots/output/changes,grid,header.snapshot.txt
+++ b/tests/snapshots/output/changes,grid,header.snapshot.txt
@@ -1,25 +1,25 @@
-───────┬────────────────────────────────────────────────────────────────────────
- │ File: sample.rs
-───────┼────────────────────────────────────────────────────────────────────────
- │ struct Rectangle {
- │ width: u32,
- │ height: u32,
- │ }
- │
- _ │ fn main() {
- │ let rect1 = Rectangle { width: 30, height: 50 };
- │
- │ println!(
- ~ │ "The perimeter of the rectangle is {} pixels.",
- ~ │ perimeter(&rect1)
- │ );
- │ }
- │
- │ fn area(rectangle: &Rectangle) -> u32 {
- │ rectangle.width * rectangle.height
- │ }
- + │
- + │ fn perimeter(rectangle: &Rectangle) -> u32 {
- + │ (rectangle.width + rectangle.height) * 2
- + │ }
-───────┴────────────────────────────────────────────────────────────────────────
+──┬─────────────────────────────────────────────────────────────────────────────
+ │ File: sample.rs
+──┼─────────────────────────────────────────────────────────────────────────────
+ │ struct Rectangle {
+ │ width: u32,
+ │ height: u32,
+ │ }
+ │
+_ │ fn main() {
+ │ let rect1 = Rectangle { width: 30, height: 50 };
+ │
+ │ println!(
+~ │ "The perimeter of the rectangle is {} pixels.",
+~ │ perimeter(&rect1)
+ │ );
+ │ }
+ │
+ │ fn area(rectangle: &Rectangle) -> u32 {
+ │ rectangle.width * rectangle.height
+ │ }
++ │
++ │ fn perimeter(rectangle: &Rectangle) -> u32 {
++ │ (rectangle.width + rectangle.height) * 2
++ │ }
+──┴─────────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/changes,grid.snapshot.txt b/tests/snapshots/output/changes,grid.snapshot.txt
index ff7ea09d..8f20a69e 100644
--- a/tests/snapshots/output/changes,grid.snapshot.txt
+++ b/tests/snapshots/output/changes,grid.snapshot.txt
@@ -1,22 +1,22 @@
- │ struct Rectangle {
- │ width: u32,
- │ height: u32,
- │ }
- │
- _ │ fn main() {
- │ let rect1 = Rectangle { width: 30, height: 50 };
- │
- │ println!(
- ~ │ "The perimeter of the rectangle is {} pixels.",
- ~ │ perimeter(&rect1)
- │ );
- │ }
- │
- │ fn area(rectangle: &Rectangle) -> u32 {
- │ rectangle.width * rectangle.height
- │ }
- + │
- + │ fn perimeter(rectangle: &Rectangle) -> u32 {
- + │ (rectangle.width + rectangle.height) * 2
- + │ }
-───────┴────────────────────────────────────────────────────────────────────────
+ │ struct Rectangle {
+ │ width: u32,
+ │ height: u32,
+ │ }
+ │
+_ │ fn main() {
+ │ let rect1 = Rectangle { width: 30, height: 50 };
+ │
+ │ println!(
+~ │ "The perimeter of the rectangle is {} pixels.",
+~ │ perimeter(&rect1)
+ │ );
+ │ }
+ │
+ │ fn area(rectangle: &Rectangle) -> u32 {
+ │ rectangle.width * rectangle.height
+ │ }
++ │
++ │ fn perimeter(rectangle: &Rectangle) -> u32 {
++ │ (rectangle.width + rectangle.height) * 2
++ │ }
+──┴─────────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/grid,header,numbers.snapshot.txt b/tests/snapshots/output/grid,header,numbers.snapshot.txt
index e842b5cb..56696b17 100644
--- a/tests/snapshots/output/grid,header,numbers.snapshot.txt
+++ b/tests/snapshots/output/grid,header,numbers.snapshot.txt
@@ -1,25 +1,25 @@
-───────┬────────────────────────────────────────────────────────────────────────
- │ 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 │ }
- 14 │
- 15 │ fn area(rectangle: &Rectangle) -> u32 {
- 16 │ rectangle.width * rectangle.height
- 17 │ }
- 18 │
- 19 │ fn perimeter(rectangle: &Rectangle) -> u32 {
- 20 │ (rectangle.width + rectangle.height) * 2
- 21 │ }
-───────┴────────────────────────────────────────────────────────────────────────
+─────┬──────────────────────────────────────────────────────────────────────────
+ │ 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 │ }
+ 14 │
+ 15 │ fn area(rectangle: &Rectangle) -> u32 {
+ 16 │ rectangle.width * rectangle.height
+ 17 │ }
+ 18 │
+ 19 │ fn perimeter(rectangle: &Rectangle) -> u32 {
+ 20 │ (rectangle.width + rectangle.height) * 2
+ 21 │ }
+─────┴──────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/grid,header.snapshot.txt b/tests/snapshots/output/grid,header.snapshot.txt
index a6fbca2d..781efb81 100644
--- a/tests/snapshots/output/grid,header.snapshot.txt
+++ b/tests/snapshots/output/grid,header.snapshot.txt
@@ -1,25 +1,25 @@
-───────┬────────────────────────────────────────────────────────────────────────
- │ File: sample.rs
-───────┼────────────────────────────────────────────────────────────────────────
- │ struct Rectangle {
- │ width: u32,
- │ height: u32,
- │ }
- │
- │ fn main() {
- │ let rect1 = Rectangle { width: 30, height: 50 };
- │
- │ println!(
- │ "The perimeter of the rectangle is {} pixels.",
- │ perimeter(&rect1)
- │ );
- │ }
- │
- │ fn area(rectangle: &Rectangle) -> u32 {
- │ rectangle.width * rectangle.height
- │ }
- │
- │ fn perimeter(rectangle: &Rectangle) -> u32 {
- │ (rectangle.width + rectangle.height) * 2
- │ }
-───────┴────────────────────────────────────────────────────────────────────────
+────────────────────────────────────────────────────────────────────────────────
+ File: sample.rs
+────────────────────────────────────────────────────────────────────────────────
+struct Rectangle {
+ width: u32,
+ height: u32,
+}
+
+fn main() {
+ let rect1 = Rectangle { width: 30, height: 50 };
+
+ println!(
+ "The perimeter of the rectangle is {} pixels.",
+ perimeter(&rect1)
+ );
+}
+
+fn area(rectangle: &Rectangle) -> u32 {
+ rectangle.width * rectangle.height
+}
+
+fn perimeter(rectangle: &Rectangle) -> u32 {
+ (rectangle.width + rectangle.height) * 2
+}
+────────────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/grid,numbers.snapshot.txt b/tests/snapshots/output/grid,numbers.snapshot.txt
index 0186dac3..2a76f8d3 100644
--- a/tests/snapshots/output/grid,numbers.snapshot.txt
+++ b/tests/snapshots/output/grid,numbers.snapshot.txt
@@ -1,22 +1,22 @@
- 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 │ }
- 14 │
- 15 │ fn area(rectangle: &Rectangle) -> u32 {
- 16 │ rectangle.width * rectangle.height
- 17 │ }
- 18 │
- 19 │ fn perimeter(rectangle: &Rectangle) -> u32 {
- 20 │ (rectangle.width + rectangle.height) * 2
- 21 │ }
-───────┴────────────────────────────────────────────────────────────────────────
+ 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 │ }
+ 14 │
+ 15 │ fn area(rectangle: &Rectangle) -> u32 {
+ 16 │ rectangle.width * rectangle.height
+ 17 │ }
+ 18 │
+ 19 │ fn perimeter(rectangle: &Rectangle) -> u32 {
+ 20 │ (rectangle.width + rectangle.height) * 2
+ 21 │ }
+─────┴──────────────────────────────────────────────────────────────────────────
diff --git a/tests/snapshots/output/grid.snapshot.txt b/tests/snapshots/output/grid.snapshot.txt
index 2adebd8f..b5bd13c2 100644
--- a/tests/snapshots/output/grid.snapshot.txt
+++ b/tests/snapshots/output/grid.snapshot.txt
@@ -1,22 +1,22 @@
- │ struct Rectangle {
- │ width: u32,
- │ height: u32,
- │ }
- │
- │ fn main() {
- │ let rect1 = Rectangle { width: 30, height: 50 };
- │
- │ println!(
- │ "The perimeter of the rectangle is {} pixels.",
- │ perimeter(&rect1)
- │ );
- │ }
- │
- │ fn area(rectangle: &Rectangle) -> u32 {
- │ rectangle.width * rectangle.height
- │ }
- │
- │ fn perimeter(rectangle: &Rectangle) -> u32 {
- │ (rectangle.width + rectangle.height) * 2
- │ }
-───────┴────────────────────────────────────────────────────────────────────────
+struct Rectangle {
+ width: u32,
+ height: u32,
+}
+
+fn main() {
+ let rect1 = Rectangle { width: 30, height: 50 };
+
+ println!(
+ "The perimeter of the rectangle is {} pixels.",
+ perimeter(&rect1)
+ );
+}
+
+fn area(rectangle: &Rectangle) -> u32 {
+ rectangle.width * rectangle.height
+}
+
+fn perimeter(rectangle: &Rectangle) -> u32 {
+ (rectangle.width + rectangle.height) * 2
+}
+────────────────────────────────────────────────────────────────────────────────