From 528b7c0d9f07cfb0ef7a7db5dfe4e3d61b9faa6f Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Sat, 1 May 2021 00:44:48 +0200 Subject: map is a reference type --- skate/set/set_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'skate/set/set_test.go') diff --git a/skate/set/set_test.go b/skate/set/set_test.go index 403b6df..dffb3e3 100644 --- a/skate/set/set_test.go +++ b/skate/set/set_test.go @@ -22,9 +22,9 @@ func TestSet(t *testing.T) { r := make(Set) r.Add("2") - is.True(s.Intersection(&r).IsEmpty()) - is.Equal(s.Union(&r).Len(), 2) - is.Equal(s.Union(&r).SortedSlice(), []string{"1", "2"}) + is.True(s.Intersection(r).IsEmpty()) + is.Equal(s.Union(r).Len(), 2) + is.Equal(s.Union(r).Sorted(), []string{"1", "2"}) r.Add("3") r.Add("4") @@ -35,7 +35,7 @@ func TestSet(t *testing.T) { top := make(Set) top.Add("2") top.Add("3") - is.Equal(r.TopK(2), &top) + is.Equal(r.TopK(2), top) r.Clear() is.Equal(r.Len(), 0) -- cgit v1.2.3