(t *testing.T)
| 50 | var n = 1000 |
| 51 | |
| 52 | func TestIsSet(t *testing.T) { |
| 53 | a := randArray(t, n) |
| 54 | a.vs[3] = 298 |
| 55 | for i := 0; i < n; i++ { |
| 56 | vsi := i / 64 |
| 57 | bitOff := uint32(i % 64) |
| 58 | b := ((a.vs[vsi] >> bitOff) & 1) != 0 |
| 59 | wrapRequire(t, b == a.IsSet(i), "i=%v", i) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | func TestOrEquals(t *testing.T) { |
| 64 | a1 := randArray(t, n) |
nothing calls this directly
no test coverage detected