diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-07-05 23:23:47 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-07-05 23:26:52 -0400 |
commit | 1c8d1d0b0a0cee3338b97f14aa32746e48e932a7 (patch) | |
tree | 408b192d196731c47deab65cc10e8947ba941b37 | |
parent | 22a2fac5f3d77103d47b855c63e1599b254d43c9 (diff) |
Clean up
-rw-r--r-- | src/parse.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.rs b/src/parse.rs index 5d549acf..182b5da3 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -285,7 +285,7 @@ mod tests { let parsed = parse_hunk_metadata("@@ -74,15 +75,14 @@ pub fn delta(\n"); let code_fragment = parsed.0; let line_numbers_and_hunk_lengths = parsed.1; - assert_eq!(code_fragment, " pub fn delta(\n",); + assert_eq!(code_fragment, " pub fn delta(\n"); assert_eq!(line_numbers_and_hunk_lengths[0].0, 74,); assert_eq!(line_numbers_and_hunk_lengths[1].0, 75,); } @@ -315,7 +315,7 @@ mod tests { let parsed = parse_hunk_metadata("@@@ -293,11 -358,15 +358,16 @@@ dependencies ="); let code_fragment = parsed.0; let line_numbers_and_hunk_lengths = parsed.1; - assert_eq!(code_fragment, " dependencies =",); + assert_eq!(code_fragment, " dependencies ="); assert_eq!(line_numbers_and_hunk_lengths[0].0, 293,); assert_eq!(line_numbers_and_hunk_lengths[1].0, 358,); assert_eq!(line_numbers_and_hunk_lengths[2].0, 358,); |