MCPcopy Index your code
hub / github.com/numpy/numpy / test_dunder_round_edgecases

Method test_dunder_round_edgecases

numpy/_core/tests/test_numeric.py:255–256  ·  view source on GitHub ↗
(self, val, ndigits)

Source from the content-addressed store, hash-verified

253 (2**31 - 1, -math.ceil(math.log10(2**31 - 1)))
254 ])
255 def test_dunder_round_edgecases(self, val, ndigits):
256 assert_equal(round(val, ndigits), round(np.int32(val), ndigits))
257
258 def test_dunder_round_accuracy(self):
259 f = np.float64(5.1 * 10**73)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
roundFunction · 0.50

Tested by

no test coverage detected