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

Method test_inf_signs

Lib/test/test_float.py:1150–1152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1148 self.assertEqual(str(-1e300 * 1e300 * 0), "nan")
1149
1150 def test_inf_signs(self):
1151 self.assertEqual(copysign(1.0, float('inf')), 1.0)
1152 self.assertEqual(copysign(1.0, float('-inf')), -1.0)
1153
1154 def test_nan_signs(self):
1155 # The sign of float('nan') should be predictable.

Callers

nothing calls this directly

Calls 2

copysignFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected