(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func TestSetClear(t *testing.T) { |
| 76 | a := New(n) |
| 77 | for j := 0; j < n; j++ { |
| 78 | wrapRequire(t, !a.IsSet(j)) |
| 79 | } |
| 80 | for i := 0; i < n; i++ { |
| 81 | a.Set(i) |
| 82 | for j := 0; j < n; j++ { |
| 83 | wrapRequire(t, (i == j) == a.IsSet(j), "i=%v, j=%v", i, j) |
| 84 | } |
| 85 | a.Clear(i) |
| 86 | for j := 0; j < n; j++ { |
| 87 | wrapRequire(t, !a.IsSet(j), "i=%v, j=%v", i, j) |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | var ns = []int{ |
| 93 | 62, 63, 64, 65, 66, 126, 127, 128, 129, 130, 131, |
nothing calls this directly
no test coverage detected