From ee7f300ae2336fc2ffc21de4e018cc4e5e503e08 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Mon, 5 Sep 2016 21:46:11 -0400 Subject: [PATCH] windows debug, take 1 --- appveyor.yml | 4 ++-- src/glob.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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