Skip to content

Commit 78caad0

Browse files
author
zonewave
committed
lint: Remove duplicate test
1 parent 0d483cc commit 78caad0

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

set_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package set
55

66
import (
7-
"encoding/json"
87
"fmt"
98
"testing"
109

@@ -664,18 +663,3 @@ func TestSet_EqualSlice(t *testing.T) {
664663
must.False(t, a.EqualSlice(b))
665664
})
666665
}
667-
668-
func TestSetSerialization(t *testing.T) {
669-
set := NewHashSet[*company, string](10)
670-
set.InsertSlice([]*company{c1, c2, c3})
671-
bs, err := json.Marshal(set)
672-
must.NoError(t, err)
673-
must.StrContains(t, string(bs), `"street":1`)
674-
must.StrContains(t, string(bs), `"street":2`)
675-
must.StrContains(t, string(bs), `"street":3`)
676-
677-
dstSet := NewHashSet[*company, string](10)
678-
err = json.Unmarshal(bs, dstSet)
679-
must.NoError(t, err)
680-
must.MapEqual(t, dstSet.items, set.items)
681-
}

0 commit comments

Comments
 (0)