mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 17:18:30 +01:00
update the test to make sure that files matching part of the ignore are not excluded
This commit is contained in:
parent
1c6f5fab89
commit
6e64a2c152
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,8 @@ mod tests {
|
||||||
// Make sure that sub-directories/-files are recursively ignored.
|
// Make sure that sub-directories/-files are recursively ignored.
|
||||||
assert!(filter.is_excluded(Path::new("target/rls")));
|
assert!(filter.is_excluded(Path::new("target/rls")));
|
||||||
assert!(filter.is_excluded(Path::new("target/rls/debug")));
|
assert!(filter.is_excluded(Path::new("target/rls/debug")));
|
||||||
|
// Assert that files containing subsets of the path are not ignored.
|
||||||
|
assert!(!filter.is_excluded(Path::new("target-file")));
|
||||||
assert!(!filter.is_excluded(Path::new("hello.rs")));
|
assert!(!filter.is_excluded(Path::new("hello.rs")));
|
||||||
assert!(!filter.is_excluded(Path::new("Cargo.toml")));
|
assert!(!filter.is_excluded(Path::new("Cargo.toml")));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue