diff --git a/src/parse.rs b/src/parse.rs index 0f452e3..8da3e59 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -41,4 +41,12 @@ mod tests { )) ) } + + #[test] + fn test_parse_malformed() { + assert_eq!( + parse_line("keyword \"malformed"), + Err(ShellError::MalformedArgs("keyword \"malformed".to_string())) + ) + } }