From 53ab003e4e8977cace916c014636b02d1782ec13 Mon Sep 17 00:00:00 2001 From: Ohad Ravid Date: Sat, 7 Nov 2020 18:53:59 +0200 Subject: [PATCH] Ignore case for path compare --- src/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query.rs b/src/query.rs index e57c961..b0d58ab 100644 --- a/src/query.rs +++ b/src/query.rs @@ -798,7 +798,7 @@ mod tests { let mut filters = HashMap::new(); filters.insert(String::from("Name"), FilterValue::String(tmp_dir_path.clone())); let directory = wmi_con.filtered_query::(&filters).unwrap().pop().unwrap(); - assert_eq!(directory.Name, tmp_dir_path); + assert_eq!(directory.Name.to_lowercase(), tmp_dir_path.to_lowercase()); } #[test]