MCPcopy Index your code
hub / github.com/python/cpython / test_bitop_identities

Method test_bitop_identities

Lib/test/test_long.py:281–291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 = []

Callers

nothing calls this directly

Calls 4

getranMethod · 0.95

Tested by

no test coverage detected