MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / TestIsProperSupersetOf

Function TestIsProperSupersetOf

structure/set/set_test.go:108–116  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

106}
107
108func TestIsProperSupersetOf(t *testing.T) {
109 s1, s2 := New(1, 2, 3), New(1, 2, 3, 4)
110 if !s2.IsProperSupersetOf(s1) {
111 t.Errorf("expecting %v to be a proper superset of %v", s2, s1)
112 }
113 if s3 := New(3, 2, 1); s1.IsProperSupersetOf(s3) {
114 t.Errorf("expecting %v not to be a proper superset of %v", s1, s3)
115 }
116}
117
118func TestUnion(t *testing.T) {
119 td := []struct {

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
IsProperSupersetOfMethod · 0.65

Tested by

no test coverage detected