From bbb9c37d14bfa0c2f78d487aed4873eba5a13d4d Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Thu, 21 Nov 2019 15:00:07 +0000 Subject: [PATCH] Format tests too --- src/lines.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lines.rs b/src/lines.rs index 11fe3bc34..2edb736dc 100644 --- a/src/lines.rs +++ b/src/lines.rs @@ -11,7 +11,7 @@ use pretty_assertions::assert_eq; #[derive(Debug, PartialEq, Clone, Copy)] pub struct AbsoluteRange { pub start: usize, // inclusive - pub end: usize, // exclusive + pub end: usize, // exclusive } #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] @@ -146,7 +146,13 @@ impl NewlinePositions { fn from_offset_newline_boundary() { let newline_positions = NewlinePositions::from("abc\nbar"); let position = newline_positions.from_offset(4); - assert_eq!(position, LinePosition { line: LineNumber::from(1), column: 0}); + assert_eq!( + position, + LinePosition { + line: LineNumber::from(1), + column: 0 + } + ); } #[test]