add integration test for grid overriding rule

This commit is contained in:
Tom Milligan 2020-10-12 09:02:08 +01:00
parent e293c58bb0
commit 1614f80366
No known key found for this signature in database
GPG Key ID: BFF10895C45328D2

View File

@ -700,6 +700,28 @@ Single Line
.stderr(""); .stderr("");
} }
#[test]
fn grid_overrides_rule() {
bat()
.arg("--decorations=always")
.arg("--style=grid,rule")
.arg("--terminal-width=80")
.arg("test.txt")
.arg("single-line.txt")
.assert()
.stdout(
"\
hello world
Single Line
",
)
.stderr("\x1b[33m[bat warning]\x1b[0m: Style 'rule' is a subset of style 'grid', 'rule' will not be visible.\n");
}
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
#[test] #[test]
fn file_with_invalid_utf8_filename() { fn file_with_invalid_utf8_filename() {