MCPcopy
hub / github.com/numpy/numpy / test_round

Method test_round

numpy/_core/tests/test_regression.py:138–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 h['x']
137
138 def test_round(self):
139 # Ticket #67
140 x = np.array([1 + 2j])
141 assert_almost_equal(x**(-1), [1 / (1 + 2j)])
142
143 def test_scalar_compare(self):
144 # Trac Ticket #72

Callers

nothing calls this directly

Calls 1

assert_almost_equalFunction · 0.90

Tested by

no test coverage detected