Skip to content

Commit

Permalink
Fix outOfBounds JUnit for IcedBitSet, only throws OOB for len>32 (alw…
Browse files Browse the repository at this point in the history
…ays uses 4 bytes at least).
  • Loading branch information
arnocandel committed Jun 30, 2015
1 parent bfbc09a commit 10dcdb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h2o-core/src/test/java/water/IcedBitSetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void fill(IcedBitSet bs, Integer[] idx) {
}

@Test (expected = IndexOutOfBoundsException.class) public void outOfBounds() {
int len = 10 + (int) (10000 * new Random().nextDouble());
int len = 32 + (int) (10000 * new Random().nextDouble());
IcedBitSet bs = new IcedBitSet(len);
bs.set(len);
}
Expand Down

0 comments on commit 10dcdb9

Please sign in to comment.