mirror of
https://github.com/sharkdp/bat
synced 2024-11-18 15:26:16 +00:00
Add integration test for style rule
This commit is contained in:
parent
aa4000cb0d
commit
c1af6ff2e6
@ -680,6 +680,26 @@ fn header_padding() {
|
||||
.stderr("");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn header_padding_rule() {
|
||||
bat()
|
||||
.arg("--decorations=always")
|
||||
.arg("--style=header,rule")
|
||||
.arg("--terminal-width=80")
|
||||
.arg("test.txt")
|
||||
.arg("single-line.txt")
|
||||
.assert()
|
||||
.stdout(
|
||||
"File: test.txt
|
||||
hello world
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
File: single-line.txt
|
||||
Single Line
|
||||
",
|
||||
)
|
||||
.stderr("");
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn file_with_invalid_utf8_filename() {
|
||||
|
Loading…
Reference in New Issue
Block a user