mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 17:35:16 +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,18 +537,20 @@ fn test_exec() {
|
|||
let te = TestEnv::new();
|
||||
|
||||
// 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.
|
||||
#[cfg(windows)]
|
||||
te.assert_output(
|
||||
&["--exec", "fc {} {}", "a.foo"],
|
||||
"
|
||||
Comparing files a.foo and A.FOO
|
||||
FC: no differences encountered",
|
||||
);
|
||||
|
||||
#[cfg(unix)]
|
||||
|
||||
// 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