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

Method test_mem_around

numpy/core/tests/test_regression.py:393–398  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

391 assert_equal(np.array([[3, 4], [5, 6], None], dtype=object).shape, (3,))
392
393 def test_mem_around(self):
394 # Ticket #243
395 x = np.zeros((1,))
396 y = [0]
397 decimal = 6
398 np.around(abs(x-y), decimal) <= 10.0**(-decimal)
399
400 def test_character_array_strip(self):
401 # Ticket #246

Callers

nothing calls this directly

Calls 1

absFunction · 0.85

Tested by

no test coverage detected