(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestSetAddRange(t *testing.T) { |
| 58 | t.Parallel() |
| 59 | x := NewSet[string]() |
| 60 | x.AddRange([]string{"string1", "string2"}) |
| 61 | if len(x.Set) != 2 { |
| 62 | t.Fatalf("Unexpected string size. Should have 2 Got %v", len(x.Set)) |
| 63 | } |
| 64 | |
| 65 | y := NewSet[int]() |
| 66 | y.AddRange([]int{1, 2}) |
| 67 | if len(y.Set) != 2 { |
| 68 | t.Fatalf("Unexpected int size. Should have 2 Got %v", len(y.Set)) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | func TestSetAddRangeDouble(t *testing.T) { |
| 73 | t.Parallel() |