diff --git a/src/parse.rs b/src/parse.rs index bdcecfa..56d30a5 100644 --- a/src/parse.rs +++ b/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()])) + ) + } }