mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-18 10:41:05 +01:00
Add integration test for style rule
This commit is contained in:
parent
aa4000cb0d
commit
c1af6ff2e6
@ -680,6 +680,26 @@ fn header_padding() {
|
|||||||
.stderr("");
|
.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")]
|
#[cfg(target_os = "linux")]
|
||||||
#[test]
|
#[test]
|
||||||
fn file_with_invalid_utf8_filename() {
|
fn file_with_invalid_utf8_filename() {
|
||||||
|
Loading…
Reference in New Issue
Block a user