lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1532162 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/util/TestOpenBitSet.java
Date Tue, 15 Oct 2013 01:52:51 GMT
Author: rmuir
Date: Tue Oct 15 01:52:51 2013
New Revision: 1532162

URL: http://svn.apache.org/r1532162
Log:
LUCENE-5272: fix test bugs

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestOpenBitSet.java

Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestOpenBitSet.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestOpenBitSet.java?rev=1532162&r1=1532161&r2=1532162&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestOpenBitSet.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/util/TestOpenBitSet.java
Tue Oct 15 01:52:51 2013
@@ -349,7 +349,7 @@ public class TestOpenBitSet extends Base
     // test ensureCapacityWords
     int numWords = random().nextInt(10) + 2; // make sure we grow the array (at least 128
bits)
     bits.ensureCapacityWords(numWords);
-    bit = _TestUtil.nextInt(random(), 128, numWords << 6); // pick a higher bit than
128, but still within range
+    bit = _TestUtil.nextInt(random(), 127, (numWords << 6)-1); // pick a bit >=
to 128, but still within range
     bits.fastSet(bit);
     assertTrue(bits.fastGet(bit));
     bits.fastClear(bit);



Mime
View raw message