We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d483cc commit 78caad0Copy full SHA for 78caad0
1 file changed
set_test.go
@@ -4,7 +4,6 @@
4
package set
5
6
import (
7
- "encoding/json"
8
"fmt"
9
"testing"
10
@@ -664,18 +663,3 @@ func TestSet_EqualSlice(t *testing.T) {
664
663
must.False(t, a.EqualSlice(b))
665
})
666
}
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
680
- must.MapEqual(t, dstSet.items, set.items)
681
-}
0 commit comments