MCPcopy
hub / github.com/numpy/numpy / test_asarray

Method test_asarray

numpy/ma/tests/test_core.py:370–378  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

368 MaskedArray([1, 2, 3], maks=[0, 1, 0]) # `mask` is misspelled.
369
370 def test_asarray(self):
371 xm = self._create_data()[5]
372 xm.fill_value = -9999
373 xm._hardmask = True
374 xmm = asarray(xm)
375 assert_equal(xmm._data, xm._data)
376 assert_equal(xmm._mask, xm._mask)
377 assert_equal(xmm.fill_value, xm.fill_value)
378 assert_equal(xmm._hardmask, xm._hardmask)
379
380 def test_asarray_default_order(self):
381 # See Issue #6646

Callers

nothing calls this directly

Calls 3

_create_dataMethod · 0.95
asarrayFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected