MCPcopy
hub / github.com/minio/minio-go / TestIntSetEquals

Function TestIntSetEquals

pkg/set/set_test.go:70–81  ·  view source on GitHub ↗

Test Equals()

(t *testing.T)

Source from the content-addressed store, hash-verified

68
69// Test Equals()
70func TestIntSetEquals(t *testing.T) {
71 s1 := Create(1, 2, 3)
72 s2 := Create(3, 2, 1)
73 s3 := Create(1, 2)
74
75 if !s1.Equals(s2) {
76 t.Fatalf("expected s1 to equal s2")
77 }
78 if s1.Equals(s3) {
79 t.Fatalf("expected s1 not to equal s3")
80 }
81}
82
83// Test Intersection()
84func TestIntSetIntersection(t *testing.T) {

Callers

nothing calls this directly

Calls 2

CreateFunction · 0.85
EqualsMethod · 0.45

Tested by

no test coverage detected