Browse Source

test: add parse line multiple word test

main
fdai7451 2 years ago
parent
commit
0d92a80707
  1. 8
      src/parse.rs

8
src/parse.rs

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