(self)
| 279 | eq(x | (y & z), (x | y) & (x | z)) |
| 280 | |
| 281 | def test_bitop_identities(self): |
| 282 | for x in special: |
| 283 | self.check_bitop_identities_1(x) |
| 284 | digits = range(1, MAXDIGITS+1) |
| 285 | for lenx in digits: |
| 286 | x = self.getran(lenx) |
| 287 | self.check_bitop_identities_1(x) |
| 288 | for leny in digits: |
| 289 | y = self.getran(leny) |
| 290 | self.check_bitop_identities_2(x, y) |
| 291 | self.check_bitop_identities_3(x, y, self.getran((lenx + leny)//2)) |
| 292 | |
| 293 | def slow_format(self, x, base): |
| 294 | digits = [] |
nothing calls this directly
no test coverage detected