(self, x, y, z)
| 270 | eq(x ^ y, (x | y) & (~x | ~y)) |
| 271 | |
| 272 | def check_bitop_identities_3(self, x, y, z): |
| 273 | eq = self.assertEqual |
| 274 | with self.subTest(x=x, y=y, z=z): |
| 275 | eq((x & y) & z, x & (y & z)) |
| 276 | eq((x | y) | z, x | (y | z)) |
| 277 | eq((x ^ y) ^ z, x ^ (y ^ z)) |
| 278 | eq(x & (y | z), (x & y) | (x & z)) |
| 279 | eq(x | (y & z), (x | y) & (x | z)) |
| 280 | |
| 281 | def test_bitop_identities(self): |
| 282 | for x in special: |
no test coverage detected