Add integration test for style rule

This commit is contained in:
Tom Milligan 2020-10-08 09:59:14 +01:00
parent aa4000cb0d
commit c1af6ff2e6
No known key found for this signature in database
GPG Key ID: BFF10895C45328D2

View File

@ -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() {