mirror of
https://github.com/sharkdp/bat
synced 2025-02-17 05:18:28 +00:00
add integration test for grid overriding rule
This commit is contained in:
parent
e293c58bb0
commit
1614f80366
1 changed files with 22 additions and 0 deletions
|
@ -700,6 +700,28 @@ Single Line
|
|||
.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")]
|
||||
#[test]
|
||||
fn file_with_invalid_utf8_filename() {
|
||||
|
|
Loading…
Add table
Reference in a new issue