MCPcopy Create free account
hub / github.com/numpy/numpy / test_dunder_round_edgecases

Method test_dunder_round_edgecases

numpy/core/tests/test_numeric.py:199–200  ·  view source on GitHub ↗
(self, val, ndigits)

Source from the content-addressed store, hash-verified

197 (2**31 - 1, -math.ceil(math.log10(2**31 - 1)))
198 ])
199 def test_dunder_round_edgecases(self, val, ndigits):
200 assert_equal(round(val, ndigits), round(np.int32(val), ndigits))
201
202 def test_dunder_round_accuracy(self):
203 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