1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 03:12:25 +01:00

Merge branch 'master' into syntax-vhdl

This commit is contained in:
Jerry
2025-07-09 04:33:36 +05:00
committed by GitHub
4 changed files with 22 additions and 1 deletions

View File

@@ -450,6 +450,16 @@ fn stdin_to_stdout_cycle() -> io::Result<()> {
Ok(())
}
#[cfg(unix)]
#[test]
fn bat_error_to_stderr() {
bat()
.arg("/tmp")
.assert()
.failure()
.stderr(predicate::str::contains("[bat error]"));
}
#[cfg(unix)]
#[test]
fn no_args_doesnt_break() {