Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/splits.rs')
| -rw-r--r-- | helix-term/tests/test/splits.rs | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/helix-term/tests/test/splits.rs b/helix-term/tests/test/splits.rs index f19e3004..3ba5a504 100644 --- a/helix-term/tests/test/splits.rs +++ b/helix-term/tests/test/splits.rs @@ -62,18 +62,9 @@ async fn test_split_write_quit_all() -> anyhow::Result<()> { ) .await?; - helpers::assert_file_has_content( - file1.as_file_mut(), - &LineFeedHandling::Native.apply("hello1"), - )?; - helpers::assert_file_has_content( - file2.as_file_mut(), - &LineFeedHandling::Native.apply("hello2"), - )?; - helpers::assert_file_has_content( - file3.as_file_mut(), - &LineFeedHandling::Native.apply("hello3"), - )?; + helpers::assert_file_has_content(&mut file1, &LineFeedHandling::Native.apply("hello1"))?; + helpers::assert_file_has_content(&mut file2, &LineFeedHandling::Native.apply("hello2"))?; + helpers::assert_file_has_content(&mut file3, &LineFeedHandling::Native.apply("hello3"))?; Ok(()) } @@ -131,10 +122,7 @@ async fn test_split_write_quit_same_file() -> anyhow::Result<()> { ) .await?; - helpers::assert_file_has_content( - file.as_file_mut(), - &LineFeedHandling::Native.apply("hello\ngoodbye"), - )?; + helpers::assert_file_has_content(&mut file, &LineFeedHandling::Native.apply("hello\ngoodbye"))?; Ok(()) } |