BitsTest.java | 23 assertEquals(label(0), 0, Bits.makeBitSet(0).length); 26 assertEquals(label(i), 1, Bits.makeBitSet(i).length); method 30 assertEquals(label(i), 2, Bits.makeBitSet(i).length); method 38 assertEquals(label(i), expect, Bits.makeBitSet(i).length); method 48 assertEquals(label(i), expect * 32, method 57 assertFalse(label(i), Bits.get(bits, i)); method 68 assertTrue(label(i), Bits.get(bits, i)); method 81 assertTrue(label(i), Bits.get(bits, i) == expect); method 98 assertEquals(label(1), 0x41, bits[0]); 99 assertEquals(label(2), 0xfffffbf7, bits[1]) 126 assertTrue(label(i), Bits.get(bits, i) == expect); method 141 assertTrue(label(i), Bits.get(bits, i) == expect); method 159 assertTrue(label(i), Bits.get(bits, i) == expect); method 165 assertTrue(label(i), Bits.isEmpty(new int[i])); method 178 assertFalse(label(i), Bits.isEmpty(bits)); method 184 assertEquals(label(i), 0, Bits.bitCount(new int[i])); method 208 assertEquals(label(i), count, Bits.bitCount(bits)); method 216 assertFalse(label(i), Bits.anyInRange(bits, 0, i)); method 224 assertFalse(label(i), Bits.anyInRange(bits, i, 100)); method 232 assertFalse(label(i), Bits.anyInRange(bits, i, 100 - i)); method 243 assertTrue(label(i), Bits.anyInRange(bits, 0, i)); method 254 assertTrue(label(i), Bits.anyInRange(bits, i, 100)); method 265 assertTrue(label(i), Bits.anyInRange(bits, i, 100 - i)); method 273 assertEquals(label(i), -1, Bits.findFirst(bits, i)); method 284 assertEquals(label(i), i, Bits.findFirst(bits, i)); method 300 assertEquals(label(i), i + 5, Bits.findFirst(bits, i)); method 306 assertEquals(label(i), -1, Bits.findFirst(0, i)); method 312 assertEquals(label(i), i, Bits.findFirst(-1, i)); method 318 assertEquals(label(i), -1, Bits.findFirst((1 << i) >>> 1, i)); method 324 assertEquals(label(i), i, Bits.findFirst(1 << i, i)); method 330 assertEquals(label(i), i + 1, Bits.findFirst(1 << (i + 1), i)); method 338 assertEquals(label(i), i, Bits.findFirst(value, i)); method 342 private static String label(int n) { method in class:BitsTest [all...] |