Add more tests

This commit is contained in:
sharkdp authored and David Peter committed 2018-10-16 22:09:15 +02:00
1 parent 693bd5929d
commit c19c704a43
2 files changed
+17

No files matched your search

+16
View File
@@ -36,6 +36,22 @@ fn single() {
#[test]
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 = "
-p
--style numbers,changes
+1
View File
@@ -17,6 +17,7 @@ extern crate content_inspector;
extern crate directories;
extern crate encoding;
extern crate git2;
extern crate shell_words;
extern crate syntect;
extern crate wild;