(t *testing.T)
| 144 | } |
| 145 | |
| 146 | func TestOrderedSetRemove(t *testing.T) { |
| 147 | s1 := NewOrderedSetFromSlice([]string{"a", "b"}) |
| 148 | |
| 149 | assert.True(t, s1.Contains("a"), "tools: expected [a, b] to contain 'a'") |
| 150 | assert.True(t, s1.Contains("b"), "tools: expected [a, b] to contain 'b'") |
| 151 | |
| 152 | s1.Remove("a") |
| 153 | |
| 154 | assert.False(t, s1.Contains("a"), "tools: did not expect to find 'a' in [b]") |
| 155 | assert.True(t, s1.Contains("b"), "tools: expected [b] to contain 'b'") |
| 156 | } |
| 157 | |
| 158 | func TestOrderedSetCardinality(t *testing.T) { |
| 159 | s1 := NewOrderedSetFromSlice([]string{"a", "b"}) |
nothing calls this directly
no test coverage detected