diff --git a/src/parse.rs b/src/parse.rs index 56d30a5..0f452e3 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -26,4 +26,19 @@ mod tests { Ok(("keyword", vec!["arg1".to_string(), "arg2".to_string()])) ) } + + #[test] + fn test_parse_complex() { + assert_eq!( + parse_line("keyword 'this is arg 1' arg2 \"arg3 \""), + Ok(( + "keyword", + vec![ + "this is arg 1".to_string(), + "arg2".to_string(), + "arg3 ".to_string() + ] + )) + ) + } }