diff options
Diffstat (limited to 'cli_args_test.go')
-rw-r--r-- | cli_args_test.go | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/cli_args_test.go b/cli_args_test.go index 8e5ae3d..eee3659 100644 --- a/cli_args_test.go +++ b/cli_args_test.go @@ -5,18 +5,16 @@ import ( "testing" ) -type testcase struct { - // i is the input - i []string - // o is the expected output - o []string - // Do we expect an error? - e bool -} - // TestPrefixOArgs checks that the "-o x,y,z" parsing works correctly. func TestPrefixOArgs(t *testing.T) { - testcases := []testcase{ + testcases := []struct { + // i is the input + i []string + // o is the expected output + o []string + // Do we expect an error? + e bool + }{ { i: nil, o: nil, |