(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestCompressedIntersects(t *testing.T) { |
| 218 | ba := newSparseBitArray() |
| 219 | other := newSparseBitArray() |
| 220 | |
| 221 | assert.True(t, ba.Intersects(other)) |
| 222 | |
| 223 | other.SetBit(5) |
| 224 | |
| 225 | assert.False(t, ba.Intersects(other)) |
| 226 | assert.True(t, other.Intersects(ba)) |
| 227 | |
| 228 | ba.SetBit(5) |
| 229 | |
| 230 | assert.True(t, ba.Intersects(other)) |
| 231 | assert.True(t, other.Intersects(ba)) |
| 232 | |
| 233 | other.SetBit(10) |
| 234 | |
| 235 | assert.False(t, ba.Intersects(other)) |
| 236 | assert.True(t, other.Intersects(ba)) |
| 237 | } |
| 238 | |
| 239 | func TestLongCompressedIntersects(t *testing.T) { |
| 240 | ba := newSparseBitArray() |
nothing calls this directly
no test coverage detected
searching dependent graphs…