fixed test
This commit is contained in:
parent
49fa0b97b3
commit
90ff748fa3
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ func TestFilterSubstring(t *testing.T) {
|
|||
getFilterResultSubstring(
|
||||
&filter,
|
||||
)
|
||||
if filter.Results[0] != test.Want {
|
||||
if len(filter.Results) > 0 && filter.Results[0] != test.Want {
|
||||
t.Errorf("Got %s, want %s", filter.Results, test.Want)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue