diff --git a/appveyor.yml b/appveyor.yml index 7bbd72a..61ac845 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,8 +32,8 @@ build: false # Equivalent to Travis' `script` phase # TODO modify this phase as you see fit test_script: - - cargo build --verbose - - cargo test + # - cargo build --verbose + - cargo test matchslash2 -- --nocapture before_deploy: # Generate artifacts for release diff --git a/src/glob.rs b/src/glob.rs index bd7d247..17e9472 100644 --- a/src/glob.rs +++ b/src/glob.rs @@ -480,6 +480,9 @@ mod tests { let pat = Pattern::new($pat).unwrap(); let path = &Path::new($path).to_str().unwrap(); let re = Regex::new(&pat.to_regex_with(&$options)).unwrap(); + println!("PATTERN: {}", $pat); + println!("REGEX: {:?}", re); + println!("PATH: {}", path); assert!(!re.is_match(path.as_bytes())); } }; @@ -642,6 +645,7 @@ mod tests { matches!(matchslash1, "abc/def", "abc/def", SLASHLIT); nmatches!(matchslash2, "abc?def", "abc/def", SLASHLIT); + nmatches!(matchslash2_win, "abc?def", "abc\\def", SLASHLIT); nmatches!(matchslash3, "abc*def", "abc/def", SLASHLIT); matches!(matchslash4, "abc[/]def", "abc/def", SLASHLIT); // differs