Skip to content
Myr

Fix test on Windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent d43827f · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/tests.rs+1 added
1491 unmodified lines
1492 // Limited to one result. We could find either C.Foo2 or c.foo1493 let output = te.assert_success_and_get_output(".", &["--max-results=1", "c.foo"]);1494 let stdout = String::from_utf8_lossy(&output.stdout);1495 let stdout = stdout.trim();1496 let stdout = stdout.replace(&std::path::MAIN_SEPARATOR.to_string(), "/");1497 assert!(stdout == "one/two/C.Foo2" || stdout == "one/two/c.foo");1498}