mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
windows debug, take 1
This commit is contained in:
parent
a4d8db16f7
commit
ee7f300ae2
@ -32,8 +32,8 @@ build: false
|
|||||||
# Equivalent to Travis' `script` phase
|
# Equivalent to Travis' `script` phase
|
||||||
# TODO modify this phase as you see fit
|
# TODO modify this phase as you see fit
|
||||||
test_script:
|
test_script:
|
||||||
- cargo build --verbose
|
# - cargo build --verbose
|
||||||
- cargo test
|
- cargo test matchslash2 -- --nocapture
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
# Generate artifacts for release
|
# Generate artifacts for release
|
||||||
|
@ -480,6 +480,9 @@ mod tests {
|
|||||||
let pat = Pattern::new($pat).unwrap();
|
let pat = Pattern::new($pat).unwrap();
|
||||||
let path = &Path::new($path).to_str().unwrap();
|
let path = &Path::new($path).to_str().unwrap();
|
||||||
let re = Regex::new(&pat.to_regex_with(&$options)).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()));
|
assert!(!re.is_match(path.as_bytes()));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -642,6 +645,7 @@ mod tests {
|
|||||||
|
|
||||||
matches!(matchslash1, "abc/def", "abc/def", SLASHLIT);
|
matches!(matchslash1, "abc/def", "abc/def", SLASHLIT);
|
||||||
nmatches!(matchslash2, "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);
|
nmatches!(matchslash3, "abc*def", "abc/def", SLASHLIT);
|
||||||
matches!(matchslash4, "abc[/]def", "abc/def", SLASHLIT); // differs
|
matches!(matchslash4, "abc[/]def", "abc/def", SLASHLIT); // differs
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user