on master help sign in
Add @sharkdp's regression test for #798
2dac1c8Ethan P
tests/integration_tests.rs+12
@@ -504,3 +504,15 @@ fn snip() {
504",
504",
505 );
505 );
506}
506}
507+
508+#[test]
509+fn empty_file_leads_to_empty_output_with_grid_enabled() {
510+ bat()
511+ .arg("empty.txt")
512+ .arg("--style=grid")
513+ .arg("--decorations=always")
514+ .arg("--terminal-width=80")
515+ .assert()
516+ .success()
517+ .stdout("");
518+}