diff options
| author | Alex Flint <[email protected]> | 2019-04-30 12:54:28 -0700 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2019-04-30 12:54:28 -0700 |
| commit | 4e977796af5ef0863a674ef468c5036dcca20623 (patch) | |
| tree | 84d6670b0d0fce9013058e8d1323aedde48c4d20 /parse_test.go | |
| parent | ddec9e9e4febd4f367f31297ad2744d683f474b4 (diff) | |
add recursive expansion of subcommands
Diffstat (limited to 'parse_test.go')
| -rw-r--r-- | parse_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/parse_test.go b/parse_test.go index 9aad2e3..94cf21a 100644 --- a/parse_test.go +++ b/parse_test.go @@ -462,11 +462,10 @@ func TestPanicOnNonPointer(t *testing.T) { }) } -func TestPanicOnNonStruct(t *testing.T) { +func TestErrorOnNonStruct(t *testing.T) { var args string - assert.Panics(t, func() { - _ = parse("", &args) - }) + err := parse("", &args) + assert.Error(t, err) } func TestUnsupportedType(t *testing.T) { |
