mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 09:28:25 +01:00
Fixing rustfmt and another go at fixing echo for AppVeyor
This commit is contained in:
parent
3a7fe6e140
commit
3c0e254156
1 changed files with 7 additions and 5 deletions
|
@ -537,10 +537,13 @@ fn test_exec() {
|
||||||
let te = TestEnv::new();
|
let te = TestEnv::new();
|
||||||
|
|
||||||
// Test a simple echo before result
|
// Test a simple echo before result
|
||||||
te.assert_output(&["--exec", "echo found", "d.foo"], "found one/two/three/d.foo");
|
te.assert_output(
|
||||||
|
&["--exec", "echo found {}", "d.foo"],
|
||||||
|
"found one/two/three/d.foo",
|
||||||
|
);
|
||||||
|
|
||||||
#[cfg(windows)]
|
|
||||||
// Test executing 'fc' (File Compare) with the found result and itself.
|
// Test executing 'fc' (File Compare) with the found result and itself.
|
||||||
|
#[cfg(windows)]
|
||||||
te.assert_output(
|
te.assert_output(
|
||||||
&["--exec", "fc {} {}", "a.foo"],
|
&["--exec", "fc {} {}", "a.foo"],
|
||||||
"
|
"
|
||||||
|
@ -548,7 +551,6 @@ fn test_exec() {
|
||||||
FC: no differences encountered",
|
FC: no differences encountered",
|
||||||
);
|
);
|
||||||
|
|
||||||
#[cfg(unix)]
|
|
||||||
// Test executing 'diff' with the found result and itself.
|
// Test executing 'diff' with the found result and itself.
|
||||||
te.assert_output(&["--exec", "diff {} {}", "a.foo"],"");
|
#[cfg(unix)] te.assert_output(&["--exec", "diff {} {}", "a.foo"],"");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue