diff --git a/tests/snapshots/output/changes.snapshot.txt b/tests/snapshots/output/changes.snapshot.txt index 73520d6f..28d87201 100644 --- a/tests/snapshots/output/changes.snapshot.txt +++ b/tests/snapshots/output/changes.snapshot.txt @@ -16,21 +16,7 @@ _ 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 83e75583..3350711a 100644 --- a/tests/snapshots/output/changes_grid.snapshot.txt +++ b/tests/snapshots/output/changes_grid.snapshot.txt @@ -16,22 +16,8 @@ _ │ 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 0a32baa8..655b6e24 100644 --- a/tests/snapshots/output/changes_grid_header.snapshot.txt +++ b/tests/snapshots/output/changes_grid_header.snapshot.txt @@ -19,22 +19,8 @@ _ │ 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 index 221306da..cee4737f 100644 --- a/tests/snapshots/output/changes_grid_header_numbers.snapshot.txt +++ b/tests/snapshots/output/changes_grid_header_numbers.snapshot.txt @@ -19,22 +19,8 @@ 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_grid_numbers.snapshot.txt b/tests/snapshots/output/changes_grid_numbers.snapshot.txt index 1e1789ee..0d718425 100644 --- a/tests/snapshots/output/changes_grid_numbers.snapshot.txt +++ b/tests/snapshots/output/changes_grid_numbers.snapshot.txt @@ -16,22 +16,8 @@ 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 8d1d1b8a..82fe8c47 100644 --- a/tests/snapshots/output/changes_header.snapshot.txt +++ b/tests/snapshots/output/changes_header.snapshot.txt @@ -17,21 +17,7 @@ _ 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 ddc32872..77145eb9 100644 --- a/tests/snapshots/output/changes_header_numbers.snapshot.txt +++ b/tests/snapshots/output/changes_header_numbers.snapshot.txt @@ -17,21 +17,7 @@ 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 298ee617..bdfe745b 100644 --- a/tests/snapshots/output/changes_numbers.snapshot.txt +++ b/tests/snapshots/output/changes_numbers.snapshot.txt @@ -16,21 +16,7 @@ 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 221306da..cee4737f 100644 --- a/tests/snapshots/output/full.snapshot.txt +++ b/tests/snapshots/output/full.snapshot.txt @@ -19,22 +19,8 @@ 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 45917643..bef9a7e6 100644 --- a/tests/snapshots/output/grid.snapshot.txt +++ b/tests/snapshots/output/grid.snapshot.txt @@ -20,18 +20,4 @@ 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 fa74ec09..50c16941 100644 --- a/tests/snapshots/output/grid_header.snapshot.txt +++ b/tests/snapshots/output/grid_header.snapshot.txt @@ -23,18 +23,4 @@ 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 733b9848..e9f1a9cf 100644 --- a/tests/snapshots/output/grid_header_numbers.snapshot.txt +++ b/tests/snapshots/output/grid_header_numbers.snapshot.txt @@ -23,18 +23,4 @@ 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 c7d8fb13..799f9617 100644 --- a/tests/snapshots/output/grid_numbers.snapshot.txt +++ b/tests/snapshots/output/grid_numbers.snapshot.txt @@ -20,18 +20,4 @@ 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 6b9b5701..0889edfd 100644 --- a/tests/snapshots/output/header.snapshot.txt +++ b/tests/snapshots/output/header.snapshot.txt @@ -21,17 +21,3 @@ 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 4d445b5f..a681e6b4 100644 --- a/tests/snapshots/output/header_numbers.snapshot.txt +++ b/tests/snapshots/output/header_numbers.snapshot.txt @@ -21,17 +21,3 @@ 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 90ca33c5..c1341d29 100644 --- a/tests/snapshots/output/numbers.snapshot.txt +++ b/tests/snapshots/output/numbers.snapshot.txt @@ -20,17 +20,3 @@ 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 30cbdde6..dbc49f9f 100644 --- a/tests/snapshots/output/plain.snapshot.txt +++ b/tests/snapshots/output/plain.snapshot.txt @@ -20,17 +20,3 @@ 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..cee4737f --- /dev/null +++ b/tests/snapshots/output/tabs_4.snapshot.txt @@ -0,0 +1,26 @@ +───────┬──────────────────────────────────────────────────────────────────────── + │ 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 + │ } +───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_4_wrapped.snapshot.txt b/tests/snapshots/output/tabs_4_wrapped.snapshot.txt new file mode 100644 index 00000000..cee4737f --- /dev/null +++ b/tests/snapshots/output/tabs_4_wrapped.snapshot.txt @@ -0,0 +1,26 @@ +───────┬──────────────────────────────────────────────────────────────────────── + │ 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 + │ } +───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_8.snapshot.txt b/tests/snapshots/output/tabs_8.snapshot.txt new file mode 100644 index 00000000..cee4737f --- /dev/null +++ b/tests/snapshots/output/tabs_8.snapshot.txt @@ -0,0 +1,26 @@ +───────┬──────────────────────────────────────────────────────────────────────── + │ 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 + │ } +───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_8_wrapped.snapshot.txt b/tests/snapshots/output/tabs_8_wrapped.snapshot.txt new file mode 100644 index 00000000..cee4737f --- /dev/null +++ b/tests/snapshots/output/tabs_8_wrapped.snapshot.txt @@ -0,0 +1,26 @@ +───────┬──────────────────────────────────────────────────────────────────────── + │ 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 + │ } +───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_passthrough.snapshot.txt b/tests/snapshots/output/tabs_passthrough.snapshot.txt new file mode 100644 index 00000000..cee4737f --- /dev/null +++ b/tests/snapshots/output/tabs_passthrough.snapshot.txt @@ -0,0 +1,26 @@ +───────┬──────────────────────────────────────────────────────────────────────── + │ 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 + │ } +───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt b/tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt new file mode 100644 index 00000000..cee4737f --- /dev/null +++ b/tests/snapshots/output/tabs_passthrough_wrapped.snapshot.txt @@ -0,0 +1,26 @@ +───────┬──────────────────────────────────────────────────────────────────────── + │ 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 + │ } +───────┴──────────────────────────────────────────────────────────────────────── diff --git a/tests/snapshots/sample.modified.rs b/tests/snapshots/sample.modified.rs index 866f359d..bb1a7943 100644 --- a/tests/snapshots/sample.modified.rs +++ b/tests/snapshots/sample.modified.rs @@ -20,17 +20,3 @@ 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/sample.rs b/tests/snapshots/sample.rs index 6ee6489b..00ec0eb6 100644 --- a/tests/snapshots/sample.rs +++ b/tests/snapshots/sample.rs @@ -16,17 +16,3 @@ fn main() { fn area(rectangle: &Rectangle) -> u32 { rectangle.width * rectangle.height } - -// Tab alignment: -/* - Indent - 1 2 3 4 -1 ? -22 ? -333 ? -4444 ? -55555 ? -666666 ? -7777777 ? -88888888 ? -*/ \ No newline at end of file