mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-29 22:24:35 +00:00 
			
		
		
		
	Test --binary=as-text
				
					
				
			This commit is contained in:
		| @@ -1929,6 +1929,16 @@ fn show_all_with_unicode() { | ||||
|         .stderr(""); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn binary_as_text() { | ||||
|     bat() | ||||
|         .arg("--binary=as-text") | ||||
|         .arg("control_characters.txt") | ||||
|         .assert() | ||||
|         .stdout("\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F\x7F") | ||||
|         .stderr(""); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn no_paging_arg() { | ||||
|     bat() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user