From 268c313c2fd9363666a4bad5c8f49063600a1b02 Mon Sep 17 00:00:00 2001 From: phiresky Date: Tue, 18 Jun 2019 16:20:50 +0200 Subject: [PATCH] fix test on windows --- src/adapters/decompress.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/decompress.rs b/src/adapters/decompress.rs index ccddce3..0b51c91 100644 --- a/src/adapters/decompress.rs +++ b/src/adapters/decompress.rs @@ -131,7 +131,7 @@ mod tests { ("hi/test.hi.bz2", "hi/test.hi"), ("hello.tar.gz", "hello.tar"), ] { - assert_eq!(get_inner_filename(&PathBuf::from(a)).to_string_lossy(), *b); + assert_eq!(get_inner_filename(&PathBuf::from(a)), PathBuf::from(*b)); } } }