Browse Source

Add invalid argv instance of arguments test

renovate/configure
Yota Toyama 8 years ago
parent
commit
c0fd0f0667
  1. 6
      arguments_test.go

6
arguments_test.go

@ -65,7 +65,11 @@ func TestGetArguments(t *testing.T) {
}
func TestGetArgumentsWithInvalidArgv(t *testing.T) {
for _, argv := range [][]string{{"-c", "3.14", "file"}, {"-t", "foo", "file"}} {
for _, argv := range [][]string{
{"-c", "3.14", "file"},
{"-t", "foo", "file"},
{"-c", "-t", "file"},
} {
_, err := getArguments(argv)
assert.NotEqual(t, nil, err)
}

Loading…
Cancel
Save