1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-19 05:49:14 +02:00

windows debug, take 1

This commit is contained in:
Andrew Gallant 2016-09-05 21:46:11 -04:00
parent a4d8db16f7
commit ee7f300ae2
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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