From e891845950c3d604ed6a404981f1b1186e6ef48b Mon Sep 17 00:00:00 2001 From: Matthieu LAURENT Date: Sun, 12 May 2024 21:08:49 +0200 Subject: [PATCH] Fix inverted test --- src/ignore/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ignore/git.rs b/src/ignore/git.rs index ff03399c..86339e0e 100644 --- a/src/ignore/git.rs +++ b/src/ignore/git.rs @@ -347,7 +347,7 @@ mod tests { assert_eq!(filter.regex.as_str(), "C:/Projects/testprj/([^/]+/)*foo"); assert!(filter.only_dir); - assert!(filter.negate); + assert!(!filter.negate); let filter = &result[1];