Skip to content

Commit

Permalink
Match parameter order for helper and its assert
Browse files Browse the repository at this point in the history
Makes the failure message easier to read
  • Loading branch information
zqianem committed Sep 3, 2023
1 parent ecc17a4 commit c89cd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/tests/test/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ pub fn assert_file_has_content(file: &mut File, content: &str) -> anyhow::Result

let mut file_content = String::new();
file.read_to_string(&mut file_content)?;
assert_eq!(content, file_content);
assert_eq!(file_content, content);

Ok(())
}
Expand Down

0 comments on commit c89cd10

Please sign in to comment.