on master help sign in
Add integration test for style rule
commitc1af6ff2e6f7c596b381a70da8d37c7a28f764f0 authorTom Milligan <tom@reinfer.io> dateThu 8 Oct 2020, 09:59 (6 years ago) parentaa4000c
1 file changed+20
tests/integration_tests.rs+20
tests/integration_tests.rs+20
@@ -680,6 +680,26 @@ fn header_padding() {
680680 .stderr("");
681681}
682682
683+#[test]
684+fn header_padding_rule() {
685+ bat()
686+ .arg("--decorations=always")
687+ .arg("--style=header,rule")
688+ .arg("--terminal-width=80")
689+ .arg("test.txt")
690+ .arg("single-line.txt")
691+ .assert()
692+ .stdout(
693+ "File: test.txt
694+hello world
695+────────────────────────────────────────────────────────────────────────────────
696+File: single-line.txt
697+Single Line
698+",
699+ )
700+ .stderr("");
701+}
702+
683703#[cfg(target_os = "linux")]
684704#[test]
685705fn file_with_invalid_utf8_filename() {