mirror of
https://github.com/apache/lucene.git
synced 2025-02-07 10:38:40 +00:00
LUCENE-10233: fix Unit Test TestFixedBitSet#testAndNot (#512)
Co-authored-by: guofeng.my <guofeng.my@bytedance.com>
This commit is contained in:
parent
aa6a78c28c
commit
ebee531df7
@ -456,9 +456,10 @@ public class TestFixedBitSet extends BaseBitSetTestCase<FixedBitSet> {
|
||||
int count1 = TestUtil.nextInt(random, 0, numBits1 - 1);
|
||||
int count2 = TestUtil.nextInt(random, 0, numBits2 - 1);
|
||||
|
||||
int offSetWord1 = FixedBitSet.bits2words(TestUtil.nextInt(random, 0, count1));
|
||||
int min = TestUtil.nextInt(random, 0, numBits1 - 1);
|
||||
int offSetWord1 = min >> 6;
|
||||
int offset1 = offSetWord1 << 6;
|
||||
int[] bits1 = makeIntArray(random, count1, offset1, numBits1 - 1);
|
||||
int[] bits1 = makeIntArray(random, count1, min, numBits1 - 1);
|
||||
int[] bits2 = makeIntArray(random, count2, 0, numBits2 - 1);
|
||||
|
||||
java.util.BitSet bitSet1 = makeBitSet(bits1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user