summaryrefslogtreecommitdiffstats
path: root/ignore/src/overrides.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ignore/src/overrides.rs')
-rw-r--r--ignore/src/overrides.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ignore/src/overrides.rs b/ignore/src/overrides.rs
index 03fd39c4..955dc5ad 100644
--- a/ignore/src/overrides.rs
+++ b/ignore/src/overrides.rs
@@ -202,8 +202,9 @@ mod tests {
#[test]
fn gitignore() {
let ov = ov(&["/foo", "bar/*.rs", "baz/**"]);
+ assert!(ov.matched("bar/lib.rs", false).is_whitelist());
assert!(ov.matched("bar/wat/lib.rs", false).is_ignore());
- assert!(ov.matched("wat/bar/lib.rs", false).is_whitelist());
+ assert!(ov.matched("wat/bar/lib.rs", false).is_ignore());
assert!(ov.matched("foo", false).is_whitelist());
assert!(ov.matched("wat/foo", false).is_ignore());
assert!(ov.matched("baz", false).is_ignore());