mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Add @sharkdp's regression test for #798
This commit is contained in:
		@@ -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("");
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user