Skip to content

Commit

Permalink
test(multicall): Pass without suggestions feature
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 3, 2022
1 parent efd2253 commit 48c6919
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/builder/subcommands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,12 @@ For more information try help
utils::assert_eq(HELLO_EXPECTED, err.to_string());

let err = cmd.clone().try_get_matches_from(&["baz"]).unwrap_err();
assert_eq!(err.kind(), ErrorKind::InvalidSubcommand);
assert!(
err.kind() == ErrorKind::InvalidSubcommand
|| err.kind() == ErrorKind::UnrecognizedSubcommand,
"err.kind()={:?}",
err.kind()
);
static BAZ_EXPECTED: &str = "\
error: The subcommand 'baz' wasn't recognized
Expand Down

0 comments on commit 48c6919

Please sign in to comment.