Skip to content
Myr

Fix exec tests

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

authored by Matthias Reitinger · committed by David Peter · parent 18709b1 · Browse files · 1 file+6 added−6 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+6 added−6 removed

  • tests:+6 added−6 removed

1 file+6 added−6 removed

modified:tests/tests.rs+6 added-6 removed
617 unmodified lines
618 ),619 );620621 te.assert_output(622 &["foo", "--exec", "echo {}"],622 &["foo", "--exec", "echo", "{}"],623 "a.foo624 one/b.foo625 one/two/C.Foo2626 one/two/c.foo
1 unmodified line
628 one/two/three/directory_foo",629 );630631 te.assert_output(632 &["foo", "--exec", "echo {.}"],632 &["foo", "--exec", "echo", "{.}"],633 "a634 one/b635 one/two/C636 one/two/c
1 unmodified line
638 one/two/three/directory_foo",639 );640641 te.assert_output(642 &["foo", "--exec", "echo {/}"],642 &["foo", "--exec", "echo", "{/}"],643 "a.foo644 b.foo645 C.Foo2646 c.foo
1 unmodified line
648 directory_foo",649 );650651 te.assert_output(652 &["foo", "--exec", "echo {/.}"],652 &["foo", "--exec", "echo", "{/.}"],653 "a654 b655 C656 c
1 unmodified line
658 directory_foo",659 );660661 te.assert_output(662 &["foo", "--exec", "echo {//}"],662 &["foo", "--exec", "echo", "{//}"],663 ".664 one665 one/two666 one/two667 one/two/three668 one/two/three",669 );670671 te.assert_output(&["e1", "--exec", "printf '%s.%s\\n'"], "e1 e2.");671 te.assert_output(&["e1", "--exec", "printf", "%s.%s\n"], "e1 e2.");672 }673}