| 37 | |
| 38 | template <typename TBinaryOp> |
| 39 | void CheckBinaryOp(TBinaryOp op, vector<uint64_t> & setBits1, vector<uint64_t> & setBits2, |
| 40 | coding::CompressedBitVector const & cbv) |
| 41 | { |
| 42 | vector<uint64_t> expected; |
| 43 | op(setBits1, setBits2, expected); |
| 44 | TEST_EQUAL(expected.size(), cbv.PopCount(), ()); |
| 45 | |
| 46 | for (size_t i = 0; i < expected.size(); ++i) |
| 47 | TEST(cbv.GetBit(expected[i]), ()); |
| 48 | } |
| 49 | |
| 50 | void CheckIntersection(vector<uint64_t> & setBits1, vector<uint64_t> & setBits2, |
| 51 | coding::CompressedBitVector const & cbv) |
no test coverage detected