on master help sign in
Add line with invalid UTF-8
commitd0782ef954fb836a7cb5a31823de981ff3d8b827 authorEzinwa Okpoechi <brainmaestro@outlook.com> dateFri 18 May 2018, 11:35 (8 years ago) parentc826c2a
18 files changed+99−81
tests/snapshots/output/changes,grid,header,numbers.snapshot.txt+10−9 tests/snapshots/output/changes,grid,header.snapshot.txt+1 tests/snapshots/output/changes,grid,numbers.snapshot.txt+10−9 tests/snapshots/output/changes,grid.snapshot.txt+1 tests/snapshots/output/changes,header,numbers.snapshot.txt+10−9 tests/snapshots/output/changes,header.snapshot.txt+1 tests/snapshots/output/changes,numbers.snapshot.txt+10−9 tests/snapshots/output/changes.snapshot.txt+1 tests/snapshots/output/full.snapshot.txt+10−9 tests/snapshots/output/grid,header,numbers.snapshot.txt+10−9 tests/snapshots/output/grid,header.snapshot.txt+1 tests/snapshots/output/grid,numbers.snapshot.txt+10−9 tests/snapshots/output/grid.snapshot.txt+1 tests/snapshots/output/header,numbers.snapshot.txt+10−9 tests/snapshots/output/header.snapshot.txt+1 tests/snapshots/output/numbers.snapshot.txt+10−9 tests/snapshots/output/plain.snapshot.txt+1 tests/snapshots/sample.modified.rs+1
tests/snapshots/output/changes,grid,header,numbers.snapshot.txt+10−9
@@ -13,13 +13,14 @@
1313 10 ~ │ "The perimeter of the rectangle is {} pixels.",
1414 11 ~ │ perimeter(&rect1)
1515 12 │ );
16− 13 │ }
17− 14 │
18− 15 │ fn area(rectangle: &Rectangle) -> u32 {
19− 16 │ rectangle.width * rectangle.height
20− 17 │ }
21− 18 + │
22− 19 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
23− 20 + │ (rectangle.width + rectangle.height) * 2
24− 21 + │ }
16+ 13 + │ <bat: INVALID UTF-8>
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
2526───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/changes,grid,header.snapshot.txt+1
@@ -13,6 +13,7 @@ _ │ fn main() {
1313~ │ "The perimeter of the rectangle is {} pixels.",
1414~ │ perimeter(&rect1)
1515 │ );
16++ │ <bat: INVALID UTF-8>
1617 │ }
1718 │
1819 │ fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/output/changes,grid,numbers.snapshot.txt+10−9
@@ -10,13 +10,14 @@
1010 10 ~ │ "The perimeter of the rectangle is {} pixels.",
1111 11 ~ │ perimeter(&rect1)
1212 12 │ );
13− 13 │ }
14− 14 │
15− 15 │ fn area(rectangle: &Rectangle) -> u32 {
16− 16 │ rectangle.width * rectangle.height
17− 17 │ }
18− 18 + │
19− 19 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
20− 20 + │ (rectangle.width + rectangle.height) * 2
21− 21 + │ }
13+ 13 + │ <bat: INVALID UTF-8>
14+ 14 │ }
15+ 15 │
16+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
17+ 17 │ rectangle.width * rectangle.height
18+ 18 │ }
19+ 19 + │
20+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
21+ 21 + │ (rectangle.width + rectangle.height) * 2
22+ 22 + │ }
2223───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/changes,grid.snapshot.txt+1
@@ -10,6 +10,7 @@ _ │ fn main() {
1010~ │ "The perimeter of the rectangle is {} pixels.",
1111~ │ perimeter(&rect1)
1212 │ );
13++ │ <bat: INVALID UTF-8>
1314 │ }
1415 │
1516 │ fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/output/changes,header,numbers.snapshot.txt+10−9
@@ -11,12 +11,13 @@ File: sample.rs
1111 10 ~ "The perimeter of the rectangle is {} pixels.",
1212 11 ~ perimeter(&rect1)
1313 12 );
14− 13 }
15− 14
16− 15 fn area(rectangle: &Rectangle) -> u32 {
17− 16 rectangle.width * rectangle.height
18− 17 }
19− 18 +
20− 19 + fn perimeter(rectangle: &Rectangle) -> u32 {
21− 20 + (rectangle.width + rectangle.height) * 2
22− 21 + }
14+ 13 + <bat: INVALID UTF-8>
15+ 14 }
16+ 15
17+ 16 fn area(rectangle: &Rectangle) -> u32 {
18+ 17 rectangle.width * rectangle.height
19+ 18 }
20+ 19 +
21+ 20 + fn perimeter(rectangle: &Rectangle) -> u32 {
22+ 21 + (rectangle.width + rectangle.height) * 2
23+ 22 + }
tests/snapshots/output/changes,header.snapshot.txt+1
@@ -11,6 +11,7 @@ _ fn main() {
1111~ "The perimeter of the rectangle is {} pixels.",
1212~ perimeter(&rect1)
1313 );
14++ <bat: INVALID UTF-8>
1415 }
1516
1617 fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/output/changes,numbers.snapshot.txt+10−9
@@ -10,12 +10,13 @@
1010 10 ~ "The perimeter of the rectangle is {} pixels.",
1111 11 ~ perimeter(&rect1)
1212 12 );
13− 13 }
14− 14
15− 15 fn area(rectangle: &Rectangle) -> u32 {
16− 16 rectangle.width * rectangle.height
17− 17 }
18− 18 +
19− 19 + fn perimeter(rectangle: &Rectangle) -> u32 {
20− 20 + (rectangle.width + rectangle.height) * 2
21− 21 + }
13+ 13 + <bat: INVALID UTF-8>
14+ 14 }
15+ 15
16+ 16 fn area(rectangle: &Rectangle) -> u32 {
17+ 17 rectangle.width * rectangle.height
18+ 18 }
19+ 19 +
20+ 20 + fn perimeter(rectangle: &Rectangle) -> u32 {
21+ 21 + (rectangle.width + rectangle.height) * 2
22+ 22 + }
tests/snapshots/output/changes.snapshot.txt+1
@@ -10,6 +10,7 @@ _ fn main() {
1010~ "The perimeter of the rectangle is {} pixels.",
1111~ perimeter(&rect1)
1212 );
13++ <bat: INVALID UTF-8>
1314 }
1415
1516 fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/output/full.snapshot.txt+10−9
@@ -13,13 +13,14 @@
1313 10 ~ │ "The perimeter of the rectangle is {} pixels.",
1414 11 ~ │ perimeter(&rect1)
1515 12 │ );
16− 13 │ }
17− 14 │
18− 15 │ fn area(rectangle: &Rectangle) -> u32 {
19− 16 │ rectangle.width * rectangle.height
20− 17 │ }
21− 18 + │
22− 19 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
23− 20 + │ (rectangle.width + rectangle.height) * 2
24− 21 + │ }
16+ 13 + │ <bat: INVALID UTF-8>
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 + │
23+ 20 + │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 + │ (rectangle.width + rectangle.height) * 2
25+ 22 + │ }
2526───────┴────────────────────────────────────────────────────────────────────────
tests/snapshots/output/grid,header,numbers.snapshot.txt+10−9
@@ -13,13 +13,14 @@
1313 10 │ "The perimeter of the rectangle is {} pixels.",
1414 11 │ perimeter(&rect1)
1515 12 │ );
16− 13 │ }
17− 14 │
18− 15 │ fn area(rectangle: &Rectangle) -> u32 {
19− 16 │ rectangle.width * rectangle.height
20− 17 │ }
21− 18 │
22− 19 │ fn perimeter(rectangle: &Rectangle) -> u32 {
23− 20 │ (rectangle.width + rectangle.height) * 2
24− 21 │ }
16+ 13 │ <bat: INVALID UTF-8>
17+ 14 │ }
18+ 15 │
19+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
20+ 17 │ rectangle.width * rectangle.height
21+ 18 │ }
22+ 19 │
23+ 20 │ fn perimeter(rectangle: &Rectangle) -> u32 {
24+ 21 │ (rectangle.width + rectangle.height) * 2
25+ 22 │ }
2526─────┴──────────────────────────────────────────────────────────────────────────
tests/snapshots/output/grid,header.snapshot.txt+1
@@ -13,6 +13,7 @@ fn main() {
1313 "The perimeter of the rectangle is {} pixels.",
1414 perimeter(&rect1)
1515 );
16+<bat: INVALID UTF-8>
1617}
1718
1819fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/output/grid,numbers.snapshot.txt+10−9
@@ -10,13 +10,14 @@
1010 10 │ "The perimeter of the rectangle is {} pixels.",
1111 11 │ perimeter(&rect1)
1212 12 │ );
13− 13 │ }
14− 14 │
15− 15 │ fn area(rectangle: &Rectangle) -> u32 {
16− 16 │ rectangle.width * rectangle.height
17− 17 │ }
18− 18 │
19− 19 │ fn perimeter(rectangle: &Rectangle) -> u32 {
20− 20 │ (rectangle.width + rectangle.height) * 2
21− 21 │ }
13+ 13 │ <bat: INVALID UTF-8>
14+ 14 │ }
15+ 15 │
16+ 16 │ fn area(rectangle: &Rectangle) -> u32 {
17+ 17 │ rectangle.width * rectangle.height
18+ 18 │ }
19+ 19 │
20+ 20 │ fn perimeter(rectangle: &Rectangle) -> u32 {
21+ 21 │ (rectangle.width + rectangle.height) * 2
22+ 22 │ }
2223─────┴──────────────────────────────────────────────────────────────────────────
tests/snapshots/output/grid.snapshot.txt+1
@@ -10,6 +10,7 @@ fn main() {
1010 "The perimeter of the rectangle is {} pixels.",
1111 perimeter(&rect1)
1212 );
13+<bat: INVALID UTF-8>
1314}
1415
1516fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/output/header,numbers.snapshot.txt+10−9
@@ -11,12 +11,13 @@ File: sample.rs
1111 10 "The perimeter of the rectangle is {} pixels.",
1212 11 perimeter(&rect1)
1313 12 );
14− 13 }
15− 14
16− 15 fn area(rectangle: &Rectangle) -> u32 {
17− 16 rectangle.width * rectangle.height
18− 17 }
19− 18
20− 19 fn perimeter(rectangle: &Rectangle) -> u32 {
21− 20 (rectangle.width + rectangle.height) * 2
22− 21 }
14+ 13 <bat: INVALID UTF-8>
15+ 14 }
16+ 15
17+ 16 fn area(rectangle: &Rectangle) -> u32 {
18+ 17 rectangle.width * rectangle.height
19+ 18 }
20+ 19
21+ 20 fn perimeter(rectangle: &Rectangle) -> u32 {
22+ 21 (rectangle.width + rectangle.height) * 2
23+ 22 }
tests/snapshots/output/header.snapshot.txt+1
@@ -11,6 +11,7 @@ fn main() {
1111 "The perimeter of the rectangle is {} pixels.",
1212 perimeter(&rect1)
1313 );
14+<bat: INVALID UTF-8>
1415}
1516
1617fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/output/numbers.snapshot.txt+10−9
@@ -10,12 +10,13 @@
1010 10 "The perimeter of the rectangle is {} pixels.",
1111 11 perimeter(&rect1)
1212 12 );
13− 13 }
14− 14
15− 15 fn area(rectangle: &Rectangle) -> u32 {
16− 16 rectangle.width * rectangle.height
17− 17 }
18− 18
19− 19 fn perimeter(rectangle: &Rectangle) -> u32 {
20− 20 (rectangle.width + rectangle.height) * 2
21− 21 }
13+ 13 <bat: INVALID UTF-8>
14+ 14 }
15+ 15
16+ 16 fn area(rectangle: &Rectangle) -> u32 {
17+ 17 rectangle.width * rectangle.height
18+ 18 }
19+ 19
20+ 20 fn perimeter(rectangle: &Rectangle) -> u32 {
21+ 21 (rectangle.width + rectangle.height) * 2
22+ 22 }
tests/snapshots/output/plain.snapshot.txt+1
@@ -10,6 +10,7 @@ fn main() {
1010 "The perimeter of the rectangle is {} pixels.",
1111 perimeter(&rect1)
1212 );
13+<bat: INVALID UTF-8>
1314}
1415
1516fn area(rectangle: &Rectangle) -> u32 {
tests/snapshots/sample.modified.rs+1
@@ -10,6 +10,7 @@ fn main() {
1010 "The perimeter of the rectangle is {} pixels.",
1111 perimeter(&rect1)
1212 );
13+ println!(r#"This line contains invalid utf8: "�����"#;
1314}
1415
1516fn area(rectangle: &Rectangle) -> u32 {