From 3f66f4ee7b98f3871221d3fbca14f11de482c1ff Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 18 Oct 2025 20:25:51 -0400 Subject: [PATCH] tsk-72: Test fix --- src/coverart.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/coverart.rs b/src/coverart.rs index d9636ad..259ed35 100644 --- a/src/coverart.rs +++ b/src/coverart.rs @@ -114,9 +114,11 @@ mod tests { #[test] fn test_cover_art_image() { - let path: String = String::from("somepath"); - let coverart = coverart::init::init_coverart_only_path(path.clone()); + let dir = String::from("./"); + let filename = String::from("CoverArt.png"); + let coverart = coverart::init::init_coverart_dir_and_filename(&dir, &filename); - assert_eq!(path, coverart.path); + assert_eq!(dir, coverart.directory); + assert_eq!(filename, coverart.filename); } }