mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 15:12:12 +00:00 
			
		
		
		
	Add more tests
This commit is contained in:
		| @@ -36,6 +36,22 @@ fn single() { | |||||||
|  |  | ||||||
| #[test] | #[test] | ||||||
| fn multiple() { | fn multiple() { | ||||||
|  |     assert_eq!( | ||||||
|  |         vec!["--plain", "--language=cpp"], | ||||||
|  |         get_args_from_str("--plain --language=cpp") | ||||||
|  |     ); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #[test] | ||||||
|  | fn quotes() { | ||||||
|  |     assert_eq!( | ||||||
|  |         vec!["--theme", "Sublime Snazzy"], | ||||||
|  |         get_args_from_str("--theme \"Sublime Snazzy\"") | ||||||
|  |     ); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #[test] | ||||||
|  | fn multi_line() { | ||||||
|     let config = " |     let config = " | ||||||
|     -p |     -p | ||||||
|     --style numbers,changes |     --style numbers,changes | ||||||
|   | |||||||
| @@ -17,6 +17,7 @@ extern crate content_inspector; | |||||||
| extern crate directories; | extern crate directories; | ||||||
| extern crate encoding; | extern crate encoding; | ||||||
| extern crate git2; | extern crate git2; | ||||||
|  | extern crate shell_words; | ||||||
| extern crate syntect; | extern crate syntect; | ||||||
| extern crate wild; | extern crate wild; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user