style: add component 'rule' for horizontal file delimiter

This commit is contained in:
Tom Milligan
2020-10-06 16:57:47 +01:00
parent 33128d75f2
commit aa4000cb0d
23 changed files with 441 additions and 9 deletions

View File

@ -570,6 +570,18 @@ fn empty_file_leads_to_empty_output_with_grid_enabled() {
.stdout("");
}
#[test]
fn empty_file_leads_to_empty_output_with_rule_enabled() {
bat()
.arg("empty.txt")
.arg("--style=rule")
.arg("--decorations=always")
.arg("--terminal-width=80")
.assert()
.success()
.stdout("");
}
#[test]
fn filename_basic() {
bat()