This commit is contained in:
sxyazi 2024-10-26 08:47:08 +08:00
parent a222f35c72
commit ec8c0aae74
No known key found for this signature in database

View file

@ -84,6 +84,7 @@ mod tests {
Pattern::from_str(glob).unwrap().match_path(path, false) Pattern::from_str(glob).unwrap().match_path(path, false)
} }
#[cfg(unix)]
#[test] #[test]
fn test_unix() { fn test_unix() {
// Wildcard // Wildcard
@ -117,6 +118,7 @@ mod tests {
assert!(!matches("/*.md", "/foo/bar.md")); assert!(!matches("/*.md", "/foo/bar.md"));
} }
#[cfg(windows)]
#[test] #[test]
fn test_windows() { fn test_windows() {
// Wildcard // Wildcard