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:
Steven Caswell 2005-08-22 01:25:29 +00:00
parent f9c0dca1bf
commit eecd6b3a42
1 changed files with 1 additions and 1 deletions

View File

@ -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));