5657585960616263646566
OpenBitSetIterator iterator = new OpenBitSetIterator(b); do { aa = a.nextSetBit(aa+1); if (rand.nextBoolean()) { iterator.next(); bb = iterator.doc(); } else { iterator.skipTo(bb+1); bb = iterator.doc(); } assertEquals(aa == -1 ? DocIdSetIterator.NO_MORE_DOCS : aa, bb);
5960616263646566676869
if (rand.nextBoolean()) { iterator.next(); bb = iterator.doc(); } else { iterator.skipTo(bb+1); bb = iterator.doc(); } assertEquals(aa == -1 ? DocIdSetIterator.NO_MORE_DOCS : aa, bb); } while (aa>=0); }