corrected isAllSet test on zero value
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234413 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f9c0dca1bf
commit
eecd6b3a42
|
@ -123,7 +123,7 @@ public class BitFieldTest extends TestCase {
|
|||
public void testIsAllSet() {
|
||||
for (int j = 0; j < 0x3F80; j += 0x80) {
|
||||
assertTrue(!bf_multi.isAllSet(j));
|
||||
assertTrue(!bf_zero.isAllSet(j));
|
||||
assertTrue(bf_zero.isAllSet(j));
|
||||
}
|
||||
assertTrue(bf_multi.isAllSet(0x3F80));
|
||||
assertTrue(!bf_single.isAllSet(0));
|
||||
|
|
Loading…
Reference in New Issue