mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-17 03:23:14 +02:00
Continue with output after "is directory"-error
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user