on master help sign in
add integration test for grid overriding rule
1614f80Tom Milligan
tests/integration_tests.rs+22
@@ -700,6 +700,28 @@ Single Line
700 .stderr("");
700 .stderr("");
701}
701}
702
702
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+
703#[cfg(target_os = "linux")]
725#[cfg(target_os = "linux")]
704#[test]
726#[test]
705fn file_with_invalid_utf8_filename() {
727fn file_with_invalid_utf8_filename() {