diff options
author | sharkdp <davidpeter@web.de> | 2018-10-11 21:54:19 +0200 |
---|---|---|
committer | sharkdp <davidpeter@web.de> | 2018-10-11 21:54:19 +0200 |
commit | 278bde5cee57db6866a925890fac176a1af6eb0a (patch) | |
tree | ed95d8d4de797522e204e97f0c990716574fe945 /tests | |
parent | eee7e5a575f8ae7a932cab410be5fb66bb6b5e0d (diff) |
Continue with output after "is directory"-error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 2192bbd3..58482386 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -102,3 +102,13 @@ fn fail_non_existing() { fn fail_directory() { bat().arg("sub_directory").assert().failure(); } + +#[test] +fn do_not_exit_directory() { + bat() + .arg("sub_directory") + .arg("test.txt") + .assert() + .stdout("hello world\n") + .failure(); +} |