Add integration test for style rule

This commit is contained in:
Tom Milligan committed 2020-10-12 09:04:27 +01:00
1 parent aa4000cb0d
commit c1af6ff2e6
1 file changed
+20
+20
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() {