Skip to content

Commit

Permalink
Add newline to expected diff
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie committed Oct 18, 2023
1 parent 84f648b commit efe4273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selene-lib/src/lints/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub fn test_lint_config_with_output<
let diff_output_path = path_base.with_extension("fixed.diff");

if let Ok(expected) = fs::read_to_string(&diff_output_path) {
pretty_assertions::assert_str_eq!(&expected, &fixed_diff.as_str());
pretty_assertions::assert_str_eq!(&(expected + "\n"), &fixed_diff.as_str());
} else {
let mut output_file =
fs::File::create(diff_output_path).expect("couldn't create fixed.diff output file");
Expand Down

0 comments on commit efe4273

Please sign in to comment.