diff --git a/src/parse.rs b/src/parse.rs index e6e3765..4d07452 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -23,7 +23,15 @@ mod tests { fn test_tokenize() { assert_eq!( tokenize("test arg1 arg2 arg3"), - ["test", "arg1", "arg2", "arg3"] + vec!["test", "arg1", "arg2", "arg3"] + ); + } + + #[test] + fn test_parse_line() { + assert_eq!( + parse_line("test arg1 arg2 arg3"), + ("test", vec!["arg1", "arg2", "arg3"]) ); } }