mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02: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
@ -151,6 +151,8 @@ mod tests {
|
||||
// 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/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("Cargo.toml")));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user