From 2dac1c878543971946067e059132edff83e37a49 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Thu, 27 Feb 2020 15:09:01 -0800 Subject: [PATCH] Add @sharkdp's regression test for #798 --- tests/integration_tests.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 0777dda4..ab0aa769 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -504,3 +504,15 @@ fn snip() { ", ); } + +#[test] +fn empty_file_leads_to_empty_output_with_grid_enabled() { + bat() + .arg("empty.txt") + .arg("--style=grid") + .arg("--decorations=always") + .arg("--terminal-width=80") + .assert() + .success() + .stdout(""); +}