Skip to content

Commit

Permalink
Merge pull request #4 from Shopify/set-coverage
Browse files Browse the repository at this point in the history
Test set.Equals for equal-length but differing sets
  • Loading branch information
chrispappas authored May 11, 2022
2 parents 044e6cb + 0069044 commit 1e3f2d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions set/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ func TestEquals(t *testing.T) {
set4 := FromSlice([]int{1, 2, 3, 4})
require.False(t, set3.Equals(set4))
require.False(t, set4.Equals(set3))

set5 := FromSlice([]int{2, 3, 4})
require.False(t, set.Equals(set5))
}

func TestUnion(t *testing.T) {
Expand Down

0 comments on commit 1e3f2d8

Please sign in to comment.