mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
Fix files
test. What a pain.
This commit is contained in:
parent
dd986d7fe9
commit
1e678d7052
@ -548,7 +548,13 @@ fn files() {
|
|||||||
let mut cmd = wd.command();
|
let mut cmd = wd.command();
|
||||||
cmd.arg("--files");
|
cmd.arg("--files");
|
||||||
let lines: String = wd.stdout(&mut cmd);
|
let lines: String = wd.stdout(&mut cmd);
|
||||||
assert_eq!(lines, "./file\n./dir/file\n");
|
if cfg!(windows) {
|
||||||
|
assert!(lines == "./dir\\file\n./file\n"
|
||||||
|
|| lines == "./file\n./dir\\file\n");
|
||||||
|
} else {
|
||||||
|
assert!(lines == "./file\n./dir/file\n"
|
||||||
|
|| lines == "./dir/file\n./file\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user