Test if map is empty

This commit is contained in:
Александр Чори 2021-04-06 09:43:46 +00:00 committed by Fedor Korotkiy
parent 4e3f3cc226
commit c17fe06d90

View file

@ -48,6 +48,10 @@ func TestReverseMap(t *testing.T) {
6: 3,
},
},
{
forward: map[string]int{},
backward: map[int]string{},
},
}
for _, d := range data {
t.Run(reflect.TypeOf(d.forward).String(), func(t *testing.T) {