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

Method assertIsPositiveZero

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

Source from the content-addressed store, hash-verified

2837 )
2838
2839 def assertIsPositiveZero(self, value):
2840 self.assertTrue(
2841 value == 0 and math.copysign(1, value) > 0,
2842 msg="Expected a positive zero, got {!r}".format(value)
2843 )
2844
2845 def assertIsNegativeZero(self, value):
2846 self.assertTrue(

Callers 1

test_fma_zero_resultMethod · 0.95

Calls 2

assertTrueMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected