1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-02 20:45:38 +02:00

Fix files test. What a pain.

This commit is contained in:
Andrew Gallant 2016-09-09 23:19:46 -04:00
parent dd986d7fe9
commit 1e678d7052

View File

@ -548,7 +548,13 @@ fn files() {
let mut cmd = wd.command();
cmd.arg("--files");
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]