(t *testing.T)
| 447 | } |
| 448 | |
| 449 | func TestBitArrayIntersectsSparse(t *testing.T) { |
| 450 | ba := newBitArray(s * 2) |
| 451 | cba := newSparseBitArray() |
| 452 | |
| 453 | assert.True(t, ba.Intersects(cba)) |
| 454 | |
| 455 | cba.SetBit(5) |
| 456 | assert.False(t, ba.Intersects(cba)) |
| 457 | |
| 458 | ba.SetBit(5) |
| 459 | assert.True(t, ba.Intersects(cba)) |
| 460 | |
| 461 | cba.SetBit(s + 1) |
| 462 | assert.False(t, ba.Intersects(cba)) |
| 463 | |
| 464 | ba.SetBit(s + 1) |
| 465 | assert.True(t, ba.Intersects(cba)) |
| 466 | } |
| 467 | |
| 468 | func TestBitArrayEqualsSparse(t *testing.T) { |
| 469 | ba := newBitArray(s * 2) |
nothing calls this directly
no test coverage detected
searching dependent graphs…