|
|
@ -18,4 +18,12 @@ mod tests { |
|
|
|
fn test_parse_single() {
|
|
|
|
assert_eq!(parse_line("keyword"), Ok(("keyword", vec![])))
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_parse_multiple() {
|
|
|
|
assert_eq!(
|
|
|
|
parse_line("keyword arg1 arg2"),
|
|
|
|
Ok(("keyword", vec!["arg1".to_string(), "arg2".to_string()]))
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|