Browse Source

test: add parse line malformed word test

main
fdai7451 2 years ago
parent
commit
371f69c556
  1. 8
      src/parse.rs

8
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()))
)
}
} }
Loading…
Cancel
Save