(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestIsSubsetOf(t *testing.T) { |
| 73 | s1, s2 := New(1, 2, 3), New(1, 2, 3, 4) |
| 74 | if !s1.IsSubsetOf(s2) { |
| 75 | t.Errorf("expecting %v to be a subset of %v", s1, s2) |
| 76 | } |
| 77 | if s2.IsSubsetOf(s1) { |
| 78 | t.Errorf("expecting %v not to be a subset of %v", s2, s1) |
| 79 | } |
| 80 | if s3 := New(1, 2, 5, 6); s1.IsSubsetOf(s3) { |
| 81 | t.Errorf("expecting %v not to be a subset of %v", s1, s3) |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | func TestIsProperSubsetOf(t *testing.T) { |
| 86 | s1, s2 := New(1, 2, 3), New(1, 2, 3, 4) |
nothing calls this directly
no test coverage detected