Skip to content

Commit d464cba

Browse files
committed
args_test: add TestArgs_Nil
1 parent b94ab4f commit d464cba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

args_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ func TestArgs_No(t *testing.T) {
7171
"Valid | Valid": {"unknown", NoArgs, true, []string{"one"}},
7272
})
7373
}
74+
func TestArgs_Nil(t *testing.T) {
75+
testArgs(t, map[string]argsTestcase{
76+
" | Arb": {"", nil, false, []string{"a", "b"}},
77+
"Valid | Valid": {"", nil, true, []string{"one", "two"}},
78+
"Valid | Invalid": {"invalid", nil, true, []string{"a"}},
79+
})
80+
}
7481
func TestArgs_Arbitrary(t *testing.T) {
7582
testArgs(t, map[string]argsTestcase{
7683
" | Arb": {"", ArbitraryArgs, false, []string{"a", "b"}},

0 commit comments

Comments
 (0)