Skip to content

Commit

Permalink
repo: fixup formatting in serialization test (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig authored Apr 24, 2023
1 parent 6ea02bd commit 615f94e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion serialization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package set

import (
"encoding/json"
"github.com/shoenig/test/must"
"testing"

"github.com/shoenig/test/must"
)

func TestSerialization(t *testing.T) {
Expand All @@ -21,6 +22,7 @@ func TestSerialization(t *testing.T) {
must.NoError(t, err)
must.MapEq(t, dstSet.items, set.items)
})

t.Run("HashSet", func(t *testing.T) {
set := NewHashSet[*company, string](10)
set.InsertSlice([]*company{c1, c2, c3})
Expand All @@ -35,6 +37,7 @@ func TestSerialization(t *testing.T) {
must.NoError(t, err)
must.MapEqual(t, dstSet.items, set.items)
})

t.Run("TreeSet", func(t *testing.T) {
set := NewTreeSet[int, Compare[int]](Cmp[int])
set.InsertSlice([]int{10, 3, 13})
Expand Down

0 comments on commit 615f94e

Please sign in to comment.