mirror of https://github.com/spf13/cast.git
Merge 5e269c4527
into 487df00934
This commit is contained in:
commit
6bf6c09440
|
@ -654,10 +654,12 @@ func TestToIntSliceE(t *testing.T) {
|
|||
{[]interface{}{1.2, 3.2}, []int{1, 3}, false},
|
||||
{[]string{"2", "3"}, []int{2, 3}, false},
|
||||
{[2]string{"2", "3"}, []int{2, 3}, false},
|
||||
{"2 3", []int{2, 3}, false},
|
||||
// errors
|
||||
{nil, nil, true},
|
||||
{testing.T{}, nil, true},
|
||||
{[]string{"foo", "bar"}, nil, true},
|
||||
{"2 a", []int{}, true},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
|
Loading…
Reference in New Issue