From 9f005d115d8d1fc3de4bb6ef09f0ce79ad142426 Mon Sep 17 00:00:00 2001 From: eth-p <32112321+eth-p@users.noreply.github.com> Date: Sat, 12 May 2018 14:04:54 -0700 Subject: [PATCH] Update snapshot test files. --- .../output/changes,grid,header.snapshot.txt | 50 +++++++++---------- .../output/changes,grid.snapshot.txt | 44 ++++++++-------- .../output/grid,header,numbers.snapshot.txt | 50 +++++++++---------- .../snapshots/output/grid,header.snapshot.txt | 50 +++++++++---------- .../output/grid,numbers.snapshot.txt | 44 ++++++++-------- tests/snapshots/output/grid.snapshot.txt | 44 ++++++++-------- 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 +} +────────────────────────────────────────────────────────────────────────────────