mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 07:04:04 +00:00 
			
		
		
		
	Make map-syntax target case insensitive
This commit is contained in:
		| @@ -2821,6 +2821,27 @@ fn highlighting_independant_from_map_syntax_case() { | ||||
|         .stderr(""); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn map_syntax_target_syntax_case_insensitive() { | ||||
|     let expected = bat() | ||||
|         .arg("-f") | ||||
|         .arg("--map-syntax=*.config:json") | ||||
|         .arg("map-syntax_case.Config") | ||||
|         .assert() | ||||
|         .get_output() | ||||
|         .stdout | ||||
|         .clone(); | ||||
|  | ||||
|     bat() | ||||
|         .arg("-f") | ||||
|         .arg("--map-syntax=*.config:json") | ||||
|         .arg("map-syntax_case.Config") | ||||
|         .assert() | ||||
|         .success() | ||||
|         .stdout(expected) | ||||
|         .stderr(""); | ||||
| } | ||||
|  | ||||
| #[test] | ||||
| fn strip_ansi_always_strips_ansi() { | ||||
|     bat() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user