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

Method assertIsNegativeZero

Lib/test/test_math.py:2845–2849  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

2843 )
2844
2845 def assertIsNegativeZero(self, value):
2846 self.assertTrue(
2847 value == 0 and math.copysign(1, value) < 0,
2848 msg="Expected a negative zero, got {!r}".format(value)
2849 )
2850
2851
2852def load_tests(loader, tests, pattern):

Callers 1

test_fma_zero_resultMethod · 0.95

Calls 2

assertTrueMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected