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

Method test_on_ndarray

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

Source from the content-addressed store, hash-verified

4861 assert_equal(test, control)
4862
4863 def test_on_ndarray(self):
4864 # Test functions on ndarrays
4865 a = np.array([1, 2, 3, 4])
4866 m = array(a, mask=False)
4867 test = anom(a)
4868 assert_equal(test, m.anom())
4869 test = reshape(a, (2, 2))
4870 assert_equal(test, m.reshape(2, 2))
4871
4872 def test_compress(self):
4873 # Test compress function on ndarray and masked array

Callers

nothing calls this directly

Calls 5

arrayFunction · 0.90
assert_equalFunction · 0.90
reshapeFunction · 0.90
anomMethod · 0.80
reshapeMethod · 0.80

Tested by

no test coverage detected