diff options
Diffstat (limited to 'src/features/line_numbers.rs')
-rw-r--r-- | src/features/line_numbers.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/features/line_numbers.rs b/src/features/line_numbers.rs index 3032bc00..0d282557 100644 --- a/src/features/line_numbers.rs +++ b/src/features/line_numbers.rs @@ -383,7 +383,7 @@ pub mod tests { let mut lines = output.lines().skip(7); let (line_1, line_2) = (lines.next().unwrap(), lines.next().unwrap()); assert_eq!(strip_ansi_codes(line_1), " 1 ⋮ │a = 1"); - assert_eq!(strip_ansi_codes(line_2), " 2 ⋮ │b = 2"); + assert_eq!(strip_ansi_codes(line_2), " 2 ⋮ │b = 23456"); } #[test] @@ -407,7 +407,7 @@ pub mod tests { let mut lines = output.lines().skip(7); let (line_1, line_2) = (lines.next().unwrap(), lines.next().unwrap()); assert_eq!(strip_ansi_codes(line_1), " ⋮ 1 │a = 1"); - assert_eq!(strip_ansi_codes(line_2), " ⋮ 2 │b = 2"); + assert_eq!(strip_ansi_codes(line_2), " ⋮ 2 │b = 234567"); } #[test] @@ -489,7 +489,7 @@ pub mod tests { let mut lines = output.lines().skip(5); let (line_1, line_2) = (lines.next().unwrap(), lines.next().unwrap()); assert_eq!(strip_ansi_codes(line_1), " 1 ⋮ │-a = 1"); - assert_eq!(strip_ansi_codes(line_2), " 2 ⋮ │-b = 2"); + assert_eq!(strip_ansi_codes(line_2), " 2 ⋮ │-b = 23456"); } #[test] @@ -514,7 +514,7 @@ index 223ca50..e69de29 100644 +++ w/a.py @@ -1,2 +0,0 @@ -a = 1 --b = 2 +-b = 23456 "; pub const TWO_PLUS_LINES_DIFF: &str = "\ @@ -525,7 +525,7 @@ index 0000000..223ca50 +++ i/a.py @@ -0,0 +1,2 @@ +a = 1 -+b = 2 ++b = 234567 "; pub const ONE_MINUS_ONE_PLUS_LINE_DIFF: &str = "\ |