getopts.rs: fix test

This commit is contained in:
Dietmar Maurer 2018-12-07 09:02:24 +01:00
parent a4b7c3f2df
commit b22751b20c
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ fn test_argument_paramenter() {
let args = vec!["-enable", "local"];
let string_args = args.iter().map(|s| s.to_string()).collect();
let res = parse_arguments(&string_args, &vec!["storage".to_string()], &schema);
let res = parse_arguments(&string_args, &vec!["storage"], &schema);
assert!(res.is_ok());
if let Ok((options, rest)) = res {
assert!(options["enable"] == true);