+6
set.go
+6
set.go
+11
set_test.go
+11
set_test.go
···
240
}
241
}
242
243
+
func TestPropertySingleonLen(t *testing.T) {
244
+
f := func(item int) bool {
245
+
single := Singleton(item)
246
+
return single.Len() == 1
247
+
}
248
+
249
+
if err := quick.Check(f, nil); err != nil {
250
+
t.Error(err)
251
+
}
252
+
}
253
+
254
func TestPropertyInsertIdempotent(t *testing.T) {
255
f := func(s Set[int], item int) bool {
256
clone := s.Clone()