Skip to content

Commit

Permalink
args_test: add TestArgs_Nil
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Mar 25, 2022
1 parent b94ab4f commit d464cba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions args_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ func TestArgs_No(t *testing.T) {
"Valid | Valid": {"unknown", NoArgs, true, []string{"one"}},
})
}
func TestArgs_Nil(t *testing.T) {
testArgs(t, map[string]argsTestcase{
" | Arb": {"", nil, false, []string{"a", "b"}},
"Valid | Valid": {"", nil, true, []string{"one", "two"}},
"Valid | Invalid": {"invalid", nil, true, []string{"a"}},
})
}
func TestArgs_Arbitrary(t *testing.T) {
testArgs(t, map[string]argsTestcase{
" | Arb": {"", ArbitraryArgs, false, []string{"a", "b"}},
Expand Down

0 comments on commit d464cba

Please sign in to comment.