From c89cd103d69c2e31ba05a6b3e9ba2037c501c16c Mon Sep 17 00:00:00 2001 From: Em Zhan Date: Sun, 3 Sep 2023 11:23:52 -0500 Subject: [PATCH] Match parameter order for helper and its assert Makes the failure message easier to read --- helix-term/tests/test/helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/tests/test/helpers.rs b/helix-term/tests/test/helpers.rs index 6466bc764bbe..e6762baf9c6d 100644 --- a/helix-term/tests/test/helpers.rs +++ b/helix-term/tests/test/helpers.rs @@ -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(()) }