(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestCompressedEquals(t *testing.T) { |
| 202 | ba := newSparseBitArray() |
| 203 | other := newSparseBitArray() |
| 204 | |
| 205 | assert.True(t, ba.Equals(other)) |
| 206 | |
| 207 | ba.SetBit(5) |
| 208 | assert.False(t, ba.Equals(other)) |
| 209 | |
| 210 | other.SetBit(5) |
| 211 | assert.True(t, ba.Equals(other)) |
| 212 | |
| 213 | ba.ClearBit(5) |
| 214 | assert.False(t, ba.Equals(other)) |
| 215 | } |
| 216 | |
| 217 | func TestCompressedIntersects(t *testing.T) { |
| 218 | ba := newSparseBitArray() |
nothing calls this directly
no test coverage detected
searching dependent graphs…