From 3c0e254156e8bff45d15f4a3cfd3cbe0bcd2ce6b Mon Sep 17 00:00:00 2001 From: SpatulaNinja Date: Thu, 19 Oct 2017 23:11:29 -0500 Subject: [PATCH] Fixing rustfmt and another go at fixing echo for AppVeyor --- tests/tests.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/tests.rs b/tests/tests.rs index be9bd20..4f22b7b 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -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"],""); }