Add integration test for style rule

pull/1276/head
Tom Milligan 4 years ago
parent aa4000cb0d
commit c1af6ff2e6
No known key found for this signature in database
GPG Key ID: BFF10895C45328D2

@ -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…
Cancel
Save