From c17fe06d90e5613c05c876fa96bd463a46c0a496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=A7=D0=BE=D1=80=D0=B8?= Date: Tue, 6 Apr 2021 09:43:46 +0000 Subject: [PATCH] Test if map is empty --- reversemap/reversemap_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reversemap/reversemap_test.go b/reversemap/reversemap_test.go index 95a7df3..487ecaf 100644 --- a/reversemap/reversemap_test.go +++ b/reversemap/reversemap_test.go @@ -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) {