1
0
mirror of https://github.com/sharkdp/fd synced 2024-07-05 09:19:11 +00:00

Fix test on Windows

This commit is contained in:
sharkdp 2020-04-02 19:06:14 +02:00 committed by David Peter
parent d43827fe57
commit 1714d416e2

View File

@ -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");
}