MCPcopy Index your code
hub / github.com/RustPython/RustPython / assertIsPositiveZero

Method assertIsPositiveZero

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

Source from the content-addressed store, hash-verified

2930 )
2931
2932 def assertIsPositiveZero(self, value):
2933 self.assertTrue(
2934 value == 0 and math.copysign(1, value) > 0,
2935 msg="Expected a positive zero, got {!r}".format(value)
2936 )
2937
2938 def assertIsNegativeZero(self, value):
2939 self.assertTrue(

Callers 1

test_fma_zero_resultMethod · 0.95

Calls 2

assertTrueMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected