Test if map is empty
This commit is contained in:
parent
4e3f3cc226
commit
c17fe06d90
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ func TestReverseMap(t *testing.T) {
|
||||||
6: 3,
|
6: 3,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
forward: map[string]int{},
|
||||||
|
backward: map[int]string{},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
for _, d := range data {
|
for _, d := range data {
|
||||||
t.Run(reflect.TypeOf(d.forward).String(), func(t *testing.T) {
|
t.Run(reflect.TypeOf(d.forward).String(), func(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue