mirror of
https://github.com/sharkdp/fd
synced 2024-10-04 14:59:15 +00:00
Fix test on Windows
This commit is contained in:
parent
d43827fe57
commit
1714d416e2
|
@ -1493,5 +1493,6 @@ fn test_max_results() {
|
|||
let output = te.assert_success_and_get_output(".", &["--max-results=1", "c.foo"]);
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
let stdout = stdout.trim();
|
||||
let stdout = stdout.replace(&std::path::MAIN_SEPARATOR.to_string(), "/");
|
||||
assert!(stdout == "one/two/C.Foo2" || stdout == "one/two/c.foo");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue