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

Method identical

Lib/test/test_float.py:1163–1164  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

1161 EPS = fromHex('0x0.0000000000001p0') # diff between 1.0 and next float up
1162
1163 def identical(self, x, y):
1164 self.assertFloatsAreIdentical(x, y)
1165
1166 def test_ends(self):
1167 self.identical(self.MIN, ldexp(1.0, -1022))

Callers 4

test_endsMethod · 0.95
test_whitespaceMethod · 0.95
test_from_hexMethod · 0.95
test_roundtripMethod · 0.95

Calls 1

Tested by

no test coverage detected