(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestSetAddRangeDouble(t *testing.T) { |
| 73 | t.Parallel() |
| 74 | x := NewSet[string]() |
| 75 | x.AddRange([]string{"string1", "string2", "string1", "string2"}) |
| 76 | if len(x.Set) != 2 { |
| 77 | t.Fatalf("Unexpected string size. Should be 2 (unique) Got %v", len(x.Set)) |
| 78 | } |
| 79 | |
| 80 | y := NewSet[int]() |
| 81 | y.AddRange([]int{1, 2, 1, 2}) |
| 82 | if len(y.Set) != 2 { |
| 83 | t.Fatalf("Unexpected int size. Should be 2 (unique) Got %v", len(y.Set)) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func TestSetContains(t *testing.T) { |
| 88 | t.Parallel() |