on master help sign in
add integration test for grid overriding rule
commit1614f80366a1fcc344df157d04bb5284ef09ee4c authorTom Milligan <tom@reinfer.io> dateMon 12 Oct 2020, 09:02 (6 years ago) parente293c58
1 file changed+22
tests/integration_tests.rs+22
tests/integration_tests.rs+22
@@ -700,6 +700,28 @@ Single Line
700700 .stderr("");
701701}
702702
703+#[test]
704+fn grid_overrides_rule() {
705+ bat()
706+ .arg("--decorations=always")
707+ .arg("--style=grid,rule")
708+ .arg("--terminal-width=80")
709+ .arg("test.txt")
710+ .arg("single-line.txt")
711+ .assert()
712+ .stdout(
713+ "\
714+────────────────────────────────────────────────────────────────────────────────
715+hello world
716+────────────────────────────────────────────────────────────────────────────────
717+────────────────────────────────────────────────────────────────────────────────
718+Single Line
719+────────────────────────────────────────────────────────────────────────────────
720+",
721+ )
722+ .stderr("\x1b[33m[bat warning]\x1b[0m: Style 'rule' is a subset of style 'grid', 'rule' will not be visible.\n");
723+}
724+
703725#[cfg(target_os = "linux")]
704726#[test]
705727fn file_with_invalid_utf8_filename() {