From 806147ac9ea0041c8ce1e0b8c05f7ca1a53fc067 Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Fri, 20 Apr 2018 13:53:07 +0200 Subject: [PATCH] Fix sanitized_name test for Windows --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index ac14e5c7..86f5dcdd 100644 --- a/src/types.rs +++ b/src/types.rs @@ -112,6 +112,6 @@ mod test { data_start: 0, external_attributes: 0, }; - assert_eq!(data.file_name_sanitized().to_str().unwrap(), "path/etc/passwd"); + assert_eq!(data.file_name_sanitized(), ::std::path::PathBuf::from("path/etc/passwd")); } }