diff options
author | Am Laher <amir.laher@tixtrack.com> | 2022-12-28 13:08:16 +1300 |
---|---|---|
committer | Am Laher <amir.laher@tixtrack.com> | 2022-12-28 13:08:16 +1300 |
commit | ca8b4800db92f4273cb2410cdbd0fc6c289d9e5f (patch) | |
tree | 64a59972421077f86b3ac3d62548158fb051b9c1 /sets_test.go | |
parent | Merge pull request #34 from laher/sets (diff) | |
download | pds-ca8b4800db92f4273cb2410cdbd0fc6c289d9e5f.tar.gz pds-ca8b4800db92f4273cb2410cdbd0fc6c289d9e5f.tar.xz |
sets: varargs
Diffstat (limited to 'sets_test.go')
-rw-r--r-- | sets_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sets_test.go b/sets_test.go index d2e7f32..b3900fc 100644 --- a/sets_test.go +++ b/sets_test.go @@ -51,7 +51,7 @@ func TestSetsDelete(t *testing.T) { func TestSortedSetsPut(t *testing.T) { s := NewSortedSet[string](nil) - s2 := s.Put("1").Put("1").Put("0") + s2 := s.Set("1").Set("1").Set("0") if s.Len() != 0 { t.Fatalf("Unexpected mutation of set") } @@ -85,7 +85,7 @@ func TestSortedSetsPut(t *testing.T) { func TestSortedSetsDelete(t *testing.T) { s := NewSortedSet[string](nil) - s2 := s.Put("1") + s2 := s.Set("1") s3 := s.Delete("1") if s2.Len() != 1 { t.Fatalf("Unexpected non-mutation of set") |