diff options
author | Oskar Haarklou Veileborg <ohv1020@hotmail.com> | 2023-01-09 20:28:08 +0100 |
---|---|---|
committer | Oskar Haarklou Veileborg <ohv1020@hotmail.com> | 2023-01-09 20:28:08 +0100 |
commit | 8e1383ea6a9561610e00b8c7f401bca1257f9001 (patch) | |
tree | 3ce620c77162717648feb4ae411b6a63acb0f2e3 /sets_test.go | |
parent | Merge pull request #35 from laher/sets-maps-append-multi (diff) | |
download | pds-8e1383ea6a9561610e00b8c7f401bca1257f9001.tar.gz pds-8e1383ea6a9561610e00b8c7f401bca1257f9001.tar.xz |
Ensure immutability of sets (and maps with SetMany)
Diffstat (limited to 'sets_test.go')
-rw-r--r-- | sets_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sets_test.go b/sets_test.go index b3900fc..5a83eb9 100644 --- a/sets_test.go +++ b/sets_test.go @@ -7,6 +7,7 @@ import ( func TestSetsPut(t *testing.T) { s := NewSet[string](nil) s2 := s.Set("1").Set("1") + s2.Set("2") if s.Len() != 0 { t.Fatalf("Unexpected mutation of set") } |